aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/site/update_basic.php
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 /actions/admin/site/update_basic.php
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 'actions/admin/site/update_basic.php')
-rw-r--r--actions/admin/site/update_basic.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/actions/admin/site/update_basic.php b/actions/admin/site/update_basic.php
index d86ec9981..10e693d94 100644
--- a/actions/admin/site/update_basic.php
+++ b/actions/admin/site/update_basic.php
@@ -42,7 +42,12 @@
set_config('debug', 1, $site->getGUID());
else
unset_config('debug', $site->getGUID());
-
+
+ $usage = get_input('usage');
+ if ($usage)
+ unset_config('ping_home', $site->getGUID());
+ else
+ set_config('ping_home', 'disabled', $site->getGUID());
if ($site->save())
system_message(elgg_echo("admin:configuration:success"));