aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorn-aleha <nick_aleha@myway.com>2014-05-09 00:30:09 +0300
committern-aleha <nick_aleha@myway.com>2014-05-09 01:50:51 +0300
commitf2471878a6f7ea2f6fd243520709f693e4260da7 (patch)
tree6c58241eb4fe39a3c83c8815489ff7df51f5417b /phpBB
parentcfc0c9bcf9cc08f19b0f3234bbf1d5d32519c821 (diff)
downloadforums-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')
-rw-r--r--phpBB/config/console.yml1
-rw-r--r--phpBB/includes/acp/acp_styles.php1
-rw-r--r--phpBB/phpbb/console/command/cache/purge.php7
3 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/config/console.yml b/phpBB/config/console.yml
index 1340d9c0d7..d32befa15e 100644
--- a/phpBB/config/console.yml
+++ b/phpBB/config/console.yml
@@ -7,6 +7,7 @@ services:
- @auth
- @log
- @user
+ - @config
tags:
- { name: console.command }
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php
index 3f9d21f56c..7b277da9f9 100644
--- a/phpBB/includes/acp/acp_styles.php
+++ b/phpBB/includes/acp/acp_styles.php
@@ -146,6 +146,7 @@ class acp_styles
{
global $db, $cache, $auth;
+ $this->config->increment('assets_version', 1);
$this->cache->purge();
// Clear permissions
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