diff options
Diffstat (limited to 'phpBB/includes/cron/task/core')
-rw-r--r-- | phpBB/includes/cron/task/core/tidy_cache.php | 2 | ||||
-rw-r--r-- | phpBB/includes/cron/task/core/tidy_search.php | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/phpBB/includes/cron/task/core/tidy_cache.php b/phpBB/includes/cron/task/core/tidy_cache.php index 0c8e8b25fb..573243c166 100644 --- a/phpBB/includes/cron/task/core/tidy_cache.php +++ b/phpBB/includes/cron/task/core/tidy_cache.php @@ -51,7 +51,7 @@ class phpbb_cron_task_core_tidy_cache extends phpbb_cron_task_base */ public function is_runnable() { - return method_exists($this->cache, 'tidy'); + return true; } /** diff --git a/phpBB/includes/cron/task/core/tidy_search.php b/phpBB/includes/cron/task/core/tidy_search.php index a2f1b55763..00af293b6d 100644 --- a/phpBB/includes/cron/task/core/tidy_search.php +++ b/phpBB/includes/cron/task/core/tidy_search.php @@ -26,13 +26,19 @@ class phpbb_cron_task_core_tidy_search extends phpbb_cron_task_base { protected $phpbb_root_path; protected $php_ext; + protected $auth; protected $config; + protected $db; + protected $user; - public function __construct($phpbb_root_path, $php_ext, phpbb_config $config) + public function __construct($phpbb_root_path, $php_ext, phpbb_auth $auth, phpbb_config $config, dbal $db, phpbb_user $user) { $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; + $this->auth = $auth; $this->config = $config; + $this->db = $db; + $this->user = $user; } /** @@ -52,7 +58,7 @@ class phpbb_cron_task_core_tidy_search extends phpbb_cron_task_base // We do some additional checks in the module to ensure it can actually be utilised $error = false; - $search = new $search_type($error); + $search = new $search_type($error, $this->phpbb_root_path, $this->php_ext, $this->auth, $this->config, $this->db, $this->user); if (!$error) { |