1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 23:55:26 +02:00

[feature/system-cron] Use complete cron task class name as cron task name

PHPBB3-9596
This commit is contained in:
Oleg Pudeyev 2010-05-09 16:42:13 -04:00
parent 8cc2819610
commit 071472a6fd

View File

@ -61,12 +61,11 @@ class cron_task_wrapper
}
/**
* Returns the name of wrapped task.
* Returns the name of wrapped task. It is the same as the wrapped class's class name.
*/
public function get_name()
{
$class = get_class($this->task);
return preg_replace('/^cron_task_/', '', $class);
return get_class($this->task);
}
/**