Commit 4fa7d408 authored by Nigel McNie's avatar Nigel McNie
Browse files

Don't run weekly send-updates cronjob if it's not enabled.

parent bfd53ede
......@@ -1999,6 +1999,10 @@ function recalculate_quota() {
* Cronjob to send an update of site statistics to mahara.org
*/
function cron_send_registration_data() {
if (!get_config('registration_sendweeklyupdates')) {
return;
}
require_once(get_config('libroot') . 'registration.php');
$result = registration_send_data();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment