aboutsummaryrefslogtreecommitdiff
path: root/views/default/settings
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/settings')
-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>