From 54e32980276d9bbda7b276bb2203fabd4b673655 Mon Sep 17 00:00:00 2001 From: moyooo Date: Tue, 5 Jan 2010 14:54:10 +0000 Subject: [PATCH] new Cronstak Register call git-svn-id: https://forge.glpi-project.org/svn/example/trunk@128 349b9182-4a13-0410-896f-e5e9767dd1b3 --- hook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hook.php b/hook.php index 94cb4c6..e90ac82 100644 --- a/hook.php +++ b/hook.php @@ -737,9 +737,9 @@ function plugin_example_install() { // To be called for each task the plugin manage // 1 task in hook.php - CronTask::Register('example', 'sample1', HOUR_TIMESTAMP*2, array('param' => 50)); + CronTask::Register('PluginExampleExample', 'sample1', HOUR_TIMESTAMP*2, array('param' => 50)); // 1 task in class - CronTask::Register('example', 'sample2', DAY_TIMESTAMP, array('itemtype' => 'PluginExampleExample')); + CronTask::Register('PluginExampleExample', 'sample2', DAY_TIMESTAMP); return true; }