Disable cronclionly in dev.php
authorJohn Okely <john@moodle.com>
Wed, 18 Feb 2015 06:25:21 +0000 (14:25 +0800)
committerJohn Okely <john@moodle.com>
Wed, 25 Feb 2015 02:38:37 +0000 (10:38 +0800)
mdk/scripts/dev.php
mdk/scripts/undev.php

index 993152e..a658126 100644 (file)
@@ -28,6 +28,9 @@ mdk_set_config('debugdisplay', 1);
 // Any kind of password is allowed.
 mdk_set_config('passwordpolicy', 0);
 
+// Allow web cron.
+mdk_set_config('cronclionly', 0);
+
 // Debug the performance.
 mdk_set_config('perfdebug', 15);
 
index 8d78d59..a27eebe 100644 (file)
@@ -57,6 +57,10 @@ $settings = $settingspage->settings;
 $default = $settings->passwordpolicy->get_defaultsetting();
 mdk_set_config('passwordpolicy', $default);
 
+// Allow web cron.
+$default = $settings->cronclionly->get_defaultsetting();
+mdk_set_config('cronclionly', $default);
+
 
 // Theme settings.
 $settingspage = $adminroot->locate('themesettings', true);