1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/10875] Changes to Cache Driver caused method_exists checks to fail

SQL Cache and other functions using the check
method_exists($cache,
failed because of the changes to the cache system.

method_exists($cache has been changed to
method_exists($cache->get_driver()

PHPBB3-10875
This commit is contained in:
Nathan Guse
2012-07-30 15:24:31 -05:00
parent 7fd1a166da
commit 828eaecf6a
10 changed files with 19 additions and 19 deletions

View File

@@ -44,7 +44,7 @@ class phpbb_cron_task_core_tidy_cache extends phpbb_cron_task_base
public function is_runnable()
{
global $cache;
return method_exists($cache, 'tidy');
return method_exists($cache->get_driver(), 'tidy');
}
/**