aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/cron/task
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2016-03-23 22:48:58 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2016-03-24 09:15:34 +0100
commit56c2caf6c0778c0da48fe0ac688c893777b89ee4 (patch)
tree2ed7f9cf6a26d0ea7b3f7bac255c777e36754b7c /phpBB/phpbb/cron/task
parenteca4726f3c2fda312b3150b7b252a300d4603fbe (diff)
downloadforums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.tar
forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.tar.gz
forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.tar.bz2
forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.tar.xz
forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.zip
[ticket/14555] Uniformize cache directory usages
PHPBB3-14555
Diffstat (limited to 'phpBB/phpbb/cron/task')
-rw-r--r--phpBB/phpbb/cron/task/core/queue.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/phpBB/phpbb/cron/task/core/queue.php b/phpBB/phpbb/cron/task/core/queue.php
index a9345a44df..eca69a5041 100644
--- a/phpBB/phpbb/cron/task/core/queue.php
+++ b/phpBB/phpbb/cron/task/core/queue.php
@@ -20,20 +20,23 @@ class queue extends \phpbb\cron\task\base
{
protected $phpbb_root_path;
protected $php_ext;
+ protected $cache_dir;
protected $config;
/**
- * Constructor.
- *
- * @param string $phpbb_root_path The root path
- * @param string $php_ext PHP file extension
- * @param \phpbb\config\config $config The config
- */
- public function __construct($phpbb_root_path, $php_ext, \phpbb\config\config $config)
+ * Constructor.
+ *
+ * @param string $phpbb_root_path The root path
+ * @param string $php_ext PHP file extension
+ * @param \phpbb\config\config $config The config
+ * @param string $cache_dir phpBB cache directory
+ */
+ public function __construct($phpbb_root_path, $php_ext, \phpbb\config\config $config, $cache_dir)
{
$this->phpbb_root_path = $phpbb_root_path;
$this->php_ext = $php_ext;
$this->config = $config;
+ $this->cache_dir = $cache_dir;
}
/**
@@ -60,7 +63,7 @@ class queue extends \phpbb\cron\task\base
*/
public function is_runnable()
{
- return file_exists($this->phpbb_root_path . 'cache/queue.' . $this->php_ext);
+ return file_exists($this->cache_dir . 'queue.' . $this->php_ext);
}
/**