mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/system-cron] Use complete cron task class name as cron task name
PHPBB3-9596
This commit is contained in:
parent
8cc2819610
commit
071472a6fd
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue