From: moodler Date: Sun, 3 Sep 2006 15:46:21 +0000 (+0000) Subject: Merging $CFG->disablestatsprocessing from stable X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=72df7e1ebd15ee35514f3be071f06cda1ca6500d;p=moodle.git Merging $CFG->disablestatsprocessing from stable --- diff --git a/admin/configvars.php b/admin/configvars.php index c3188444cd..b7fb49fcbe 100644 --- a/admin/configvars.php +++ b/admin/configvars.php @@ -594,6 +594,7 @@ class configvarrss extends configvar { } /// enable stats +if (empty($CFG->disablestatsprocessing)) { $stats['enablestats'] = new configvar (get_string('configenablestats','admin'), choose_from_menu($noyesoptions, 'enablestats', $config->enablestats, '', '', '', true) ); @@ -639,7 +640,7 @@ class configvarrss extends configvar { $stats['statsuserthreshold'] = new configvar (get_string('configstatsuserthreshold','admin'), ''); - +} //////////////////////////////////////////////////////////////////// @@ -652,6 +653,8 @@ class configvarrss extends configvar { $configvars['permissions'] = $permissions; $configvars['requestedcourse'] = $reqcourse; $configvars['misc'] = $misc; +if (empty($CFG->disablestatsprocessing)) { $configvars['stats'] = $stats; +} ?> diff --git a/admin/cron.php b/admin/cron.php index 821c069313..9840e7969c 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -274,7 +274,7 @@ unset($enrol); } - if (!empty($CFG->enablestats)) { + if (!empty($CFG->enablestats) and empty($CFG->disablestatsprocessing)) { // check we're not before our runtime $timetocheck = strtotime("$CFG->statsruntimestarthour:$CFG->statsruntimestartminute today"); diff --git a/config-dist.php b/config-dist.php index 10a9f84877..1552736892 100644 --- a/config-dist.php +++ b/config-dist.php @@ -139,6 +139,9 @@ $CFG->admin = 'admin'; // Useful for webhost operators who have alternate methods of backups // $CFG->disablescheduledbackups = true; // +// Prevent stats processing and hide the GUI +// $CFG->disablestatsprocessing = true; +// // Set global password for "Login as", teacher is prompted only once in each session. // Set your own password and tell it only to teachers that should have access to this feature. // $CFG->loginaspassword = 'yoursharedpassword';