diff options
author | n-aleha <nick_aleha@myway.com> | 2014-05-09 00:30:09 +0300 |
---|---|---|
committer | n-aleha <nick_aleha@myway.com> | 2014-05-09 01:50:51 +0300 |
commit | f2471878a6f7ea2f6fd243520709f693e4260da7 (patch) | |
tree | 6c58241eb4fe39a3c83c8815489ff7df51f5417b /phpBB/phpbb | |
parent | cfc0c9bcf9cc08f19b0f3234bbf1d5d32519c821 (diff) | |
download | forums-f2471878a6f7ea2f6fd243520709f693e4260da7.tar forums-f2471878a6f7ea2f6fd243520709f693e4260da7.tar.gz forums-f2471878a6f7ea2f6fd243520709f693e4260da7.tar.bz2 forums-f2471878a6f7ea2f6fd243520709f693e4260da7.tar.xz forums-f2471878a6f7ea2f6fd243520709f693e4260da7.zip |
[ticket/12476] Increase assets also from acp_styles and phpbbcli
Increase assets also from "ACP > Styles > Purge Cache" and phpbbcli
PHPBB3-12476
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/console/command/cache/purge.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/phpbb/console/command/cache/purge.php b/phpBB/phpbb/console/command/cache/purge.php index 017bdc5144..9c880a859f 100644 --- a/phpBB/phpbb/console/command/cache/purge.php +++ b/phpBB/phpbb/console/command/cache/purge.php @@ -28,13 +28,17 @@ class purge extends \phpbb\console\command\command /** @var \phpbb\user */ protected $user; - function __construct(\phpbb\cache\driver\driver_interface $cache, \phpbb\db\driver\driver_interface $db, \phpbb\auth\auth $auth, \phpbb\log\log $log, \phpbb\user $user) + /** @var \phpbb\config\config */ + protected $config; + + function __construct(\phpbb\cache\driver\driver_interface $cache, \phpbb\db\driver\driver_interface $db, \phpbb\auth\auth $auth, \phpbb\log\log $log, \phpbb\user $user, \phpbb\config\config $config) { $this->cache = $cache; $this->db = $db; $this->auth = $auth; $this->log = $log; $this->user = $user; + $this->config = $config; $this->user->add_lang(array('acp/common')); parent::__construct(); } @@ -49,6 +53,7 @@ class purge extends \phpbb\console\command\command protected function execute(InputInterface $input, OutputInterface $output) { + $this->config->increment('assets_version', 1); $this->cache->purge(); // Clear permissions |