aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cron
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2010-05-09 16:42:13 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-02-12 22:05:50 -0500
commit071472a6fdef07c0e1e6d79b419412452c2425a7 (patch)
tree0037a658bcb84f468c855ac72a19a8debef9eafd /phpBB/includes/cron
parent8cc2819610319a52fd093238377a54084ade0feb (diff)
downloadforums-071472a6fdef07c0e1e6d79b419412452c2425a7.tar
forums-071472a6fdef07c0e1e6d79b419412452c2425a7.tar.gz
forums-071472a6fdef07c0e1e6d79b419412452c2425a7.tar.bz2
forums-071472a6fdef07c0e1e6d79b419412452c2425a7.tar.xz
forums-071472a6fdef07c0e1e6d79b419412452c2425a7.zip
[feature/system-cron] Use complete cron task class name as cron task name
PHPBB3-9596
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);
}
/**