[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"); include_once($phpbb_root_path . "includes/cron/$mod/$filename.$phpEx");
$class = "cron_task_${mod}_${filename}"; $class = "cron_task_${mod}_${filename}";
$object = new $class; $object = new $class;
$this->tasks[] = $object; $wrapper = new cron_task_wrapper($object);
$this->tasks[] = $wrapper;
} }
} }
} }