mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 17:45:18 +02: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
@ -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()
|
public function get_name()
|
||||||
{
|
{
|
||||||
$class = get_class($this->task);
|
return get_class($this->task);
|
||||||
return preg_replace('/^cron_task_/', '', $class);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user