Commit 6b3a8885 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add missing cron job (bug #636767)


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 03a0482f
......@@ -2152,5 +2152,19 @@ function xmldb_core_upgrade($oldversion=0) {
delete_records_select('config', "field IN ('usersrank', 'groupsrank', 'viewsrank')");
}
if ($oldversion < 2010091300) {
// Cron job missing from installs post 2010041900
if (!record_exists('cron', 'callfunction', 'cron_check_for_updates')) {
$cron = new StdClass;
$cron->callfunction = 'cron_check_for_updates';
$cron->minute = rand(0, 59);
$cron->hour = rand(0, 23);
$cron->day = '*';
$cron->month = '*';
$cron->dayofweek = '*';
insert_record('cron', $cron);
}
}
return $status;
}
......@@ -804,6 +804,7 @@ function core_install_firstcoredata_defaults() {
'import_cleanup_old_imports' => array('0', '4,16', '*', '*', '*'),
'cron_site_data_weekly' => array('55', '23', '*', '*', '6'),
'cron_site_data_daily' => array('51', '23', '*', '*', '*'),
'cron_check_for_updates' => array(rand(0, 59), rand(0, 23), '*', '*', '*'),
);
foreach ($cronjobs as $callfunction => $times) {
$cron = new StdClass;
......
......@@ -28,7 +28,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2010082000;
$config->version = 2010091300;
$config->release = '1.4.0dev';
$config->minupgradefrom = 2008040200;
$config->minupgraderelease = '1.0.0 (release tag 1.0.0_RELEASE)';
......
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