aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cron
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/cron')
-rw-r--r--phpBB/includes/cron/cron_task_wrapper.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/includes/cron/cron_task_wrapper.php b/phpBB/includes/cron/cron_task_wrapper.php
index c306b56193..17f80278a7 100644
--- a/phpBB/includes/cron/cron_task_wrapper.php
+++ b/phpBB/includes/cron/cron_task_wrapper.php
@@ -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);
}
/**