aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/database_update.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2012-04-13 03:32:01 +0200
committerNils Adermann <naderman@naderman.de>2012-04-13 03:32:01 +0200
commit790cc0c54f0f84235a556e4442c42d9d1d5f7195 (patch)
treebe60657cf39d33cf97c3386ca6f2bd2d885e8ede /phpBB/install/database_update.php
parent1828d74502c800acd9eb8b87438e628f59b10dad (diff)
parent6ad58c7e046c9f257ad5441b7a583cddb213ad3f (diff)
downloadforums-790cc0c54f0f84235a556e4442c42d9d1d5f7195.tar
forums-790cc0c54f0f84235a556e4442c42d9d1d5f7195.tar.gz
forums-790cc0c54f0f84235a556e4442c42d9d1d5f7195.tar.bz2
forums-790cc0c54f0f84235a556e4442c42d9d1d5f7195.tar.xz
forums-790cc0c54f0f84235a556e4442c42d9d1d5f7195.zip
Merge remote-tracking branch 'github-callumacrae/ticket/10783' into develop
* github-callumacrae/ticket/10783: [ticket/10783] Added assets_version to ACP and simple_*.html. [ticket/10783] Added assets_version to subsilver2. [ticket/10783] Added ?assets_version to assets.
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r--phpBB/install/database_update.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index be39b12d12..5368ec06bb 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -189,6 +189,12 @@ $config = new phpbb_config_db($db, $cache->get_driver(), CONFIG_TABLE);
set_config(null, null, null, $config);
set_config_count(null, null, null, $config);
+// Update asset_version
+if (isset($config['assets_version']))
+{
+ set_config('assets_version', $config['assets_version'] + 1);
+}
+
// phpbb_db_tools will be taken from new files (under install/update/new)
// if possible, falling back to the board's copy.
$db_tools = new phpbb_db_tools($db, true);
@@ -2424,6 +2430,11 @@ function change_database_data(&$no_updates, $version)
$no_updates = false;
+ if (!isset($config['assets_version']))
+ {
+ $config->set('assets_version', '1');
+ }
+
break;
}
}