aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cron/task
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-07-30 15:57:51 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-07-30 15:57:51 -0500
commitedcac438df164764c84ca9fb7a7f751bf76d5c34 (patch)
tree96b24141e2ccc7d884afca5331783c4e09458aaa /phpBB/includes/cron/task
parent828eaecf6ab4f6c013a7955bf6af2a81c049e42f (diff)
downloadforums-edcac438df164764c84ca9fb7a7f751bf76d5c34.tar
forums-edcac438df164764c84ca9fb7a7f751bf76d5c34.tar.gz
forums-edcac438df164764c84ca9fb7a7f751bf76d5c34.tar.bz2
forums-edcac438df164764c84ca9fb7a7f751bf76d5c34.tar.xz
forums-edcac438df164764c84ca9fb7a7f751bf76d5c34.zip
[ticket/10875] method_exists check is not required, interface declares them
The changes to the cache drivers added an interface, which requires many cache functions exist. For these, we can remove the method_exists() check PHPBB3-10875
Diffstat (limited to 'phpBB/includes/cron/task')
-rw-r--r--phpBB/includes/cron/task/core/tidy_cache.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/cron/task/core/tidy_cache.php b/phpBB/includes/cron/task/core/tidy_cache.php
index 991b0725eb..f6cf77d01d 100644
--- a/phpBB/includes/cron/task/core/tidy_cache.php
+++ b/phpBB/includes/cron/task/core/tidy_cache.php
@@ -43,8 +43,7 @@ class phpbb_cron_task_core_tidy_cache extends phpbb_cron_task_base
*/
public function is_runnable()
{
- global $cache;
- return method_exists($cache->get_driver(), 'tidy');
+ return true;
}
/**