MDL-37781 Check for switching the workshop phase without waiting for cron

Now we are checking for the need to switch the phase when the main
view.php is displayed to any user (previously this was done via cron
only). To give our subplugins (such as the scheduled allocation method)
a chance to do what they need to do, the workshop_viewed event is
triggered before the phase is actually switched.
This commit is contained in:
David Mudrák
2013-01-31 03:31:18 +01:00
parent df93b156a7
commit 351aeeeba6
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
defined('MOODLE_INTERNAL') || die();
$module->version = 2012112900; // the current module version (YYYYMMDDXX)
$module->version = 2012112901; // the current module version (YYYYMMDDXX)
$module->requires = 2012112900; // requires this Moodle version
$module->component = 'mod_workshop'; // full name of the plugin (used for diagnostics)
$module->cron = 60; // give as a chance every minute