1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-20 07:42:09 +02:00

[feature/system-cron] Wrap cron tasks in cron manager.

PHPBB3-9596
This commit is contained in:
Oleg Pudeyev 2010-04-17 06:58:00 -04:00
parent 0cfbdcc744
commit b620f29937

View File

@ -101,7 +101,8 @@ class cron_manager
include_once($phpbb_root_path . "includes/cron/$mod/$filename.$phpEx");
$class = "cron_task_${mod}_${filename}";
$object = new $class;
$this->tasks[] = $object;
$wrapper = new cron_task_wrapper($object);
$this->tasks[] = $wrapper;
}
}
}