From 6c040e6a9a63e2f9a2f4107ffbb6ab468226f8bc Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 25 Jul 2008 12:28:10 +0000 Subject: Ping now configurable. git-svn-id: https://code.elgg.org/elgg/trunk@1532 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/admin/site/update_basic.php | 7 ++++++- actions/systemsettings/install.php | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'actions') 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")); diff --git a/actions/systemsettings/install.php b/actions/systemsettings/install.php index f6832843e..dd60c847c 100644 --- a/actions/systemsettings/install.php +++ b/actions/systemsettings/install.php @@ -41,7 +41,13 @@ if ($debug) set_config('debug', 1, $site->getGUID()); else - unset_config('debug', $site->getGUID()); + 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()); // activate profile by default enable_plugin('profile', $site->getGUID()); -- cgit v1.2.3