aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/dirsearch.php2
-rw-r--r--mod/pubsites.php2
-rw-r--r--mod/zfinger.php1
3 files changed, 3 insertions, 2 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php
index 04d77a298..a285d9b8c 100644
--- a/mod/dirsearch.php
+++ b/mod/dirsearch.php
@@ -205,7 +205,7 @@ function list_public_sites() {
else
$register = 'closed';
- $ret['sites'][] = array('url' => $rr['site_url'], 'access' => $access, 'register' => $register);
+ $ret['sites'][] = array('url' => $rr['site_url'], 'access' => $access, 'register' => $register, 'sellpage' => $rr['site_sellpage']);
}
}
return $ret;
diff --git a/mod/pubsites.php b/mod/pubsites.php
index d226f5d9f..b9f7510fc 100644
--- a/mod/pubsites.php
+++ b/mod/pubsites.php
@@ -27,7 +27,7 @@ function pubsites_content(&$a) {
if($j) {
$o .= '<table border="1"><tr><td>' . t('Site URL') . '</td><td>' . t('Access Type') . '</td><td>' . t('Registration Policy') . '</td></tr>';
foreach($j['sites'] as $jj) {
- $o .= '<tr><td>' . '<a href="'. $jj['url'] . '" >' . $jj['url'] . '</a>' . '</td><td>' . $jj['access'] . '</td><td>' . $jj['register'] . '</td></tr>';
+ $o .= '<tr><td>' . '<a href="'. (($jj['sellpage']) ? $jj['sellpage'] : $jj['url']) . '" >' . $jj['url'] . '</a>' . '</td><td>' . $jj['access'] . '</td><td>' . $jj['register'] . '</td></tr>';
}
$o .= '</table>';
diff --git a/mod/zfinger.php b/mod/zfinger.php
index a06d9f4b5..675b31b1e 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -249,6 +249,7 @@ function zfinger_init(&$a) {
$ret['site']['plugins'] = $visible_plugins;
$ret['site']['sitehash'] = get_config('system','location_hash');
$ret['site']['sitename'] = get_config('system','sitename');
+ $ret['site']['sellpage'] = get_config('system','sellpage');
}
json_return_and_die($ret);