aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-25 12:28:10 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-25 12:28:10 +0000
commit6c040e6a9a63e2f9a2f4107ffbb6ab468226f8bc (patch)
tree875373ed7b8eccb5b96763114685d8cab5becdb3 /views/default
parent4899d1a5b4d74f393a3944915782e3c2faefb7e7 (diff)
downloadelgg-6c040e6a9a63e2f9a2f4107ffbb6ab468226f8bc.tar.gz
elgg-6c040e6a9a63e2f9a2f4107ffbb6ab468226f8bc.tar.bz2
Ping now configurable.
git-svn-id: https://code.elgg.org/elgg/trunk@1532 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/settings/system.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/views/default/settings/system.php b/views/default/settings/system.php
index 27b610fb7..13e730029 100644
--- a/views/default/settings/system.php
+++ b/views/default/settings/system.php
@@ -60,8 +60,12 @@
<p>
<?php echo elgg_echo('usage'); ?><br />
- <?php
- echo elgg_view("input/checkboxes", array('options' => array(elgg_echo('usage:label')), 'internalname' => 'usage', 'value' => ($vars['config']->site_ping ? elgg_echo('usage') : "") ));
+ <?php
+ $on = elgg_echo('usage:label');
+
+ if (isset($CONFIG->ping_home))
+ $on = ($vars['config']->ping_home!='disabled' ? elgg_echo('usage:label') : "");
+ echo elgg_view("input/checkboxes", array('options' => array(elgg_echo('usage:label')), 'internalname' => 'usage', 'value' => $on ));
?>
</p>