aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2015-02-02 20:07:46 +0100
committerAndreas Fischer <bantu@phpbb.com>2015-02-02 20:07:46 +0100
commitdf77174a2b2a8f9e86ee8f992556dd4820484be3 (patch)
tree3a83dabddd37c465de62e60bd2bcecf3c8a29474 /phpBB/phpbb/db
parent6e2838a4cabc6e7874ff1a72af2d3eb4f5361428 (diff)
parent79d4ff553844fa80be4da9286239f62a45489072 (diff)
downloadforums-df77174a2b2a8f9e86ee8f992556dd4820484be3.tar
forums-df77174a2b2a8f9e86ee8f992556dd4820484be3.tar.gz
forums-df77174a2b2a8f9e86ee8f992556dd4820484be3.tar.bz2
forums-df77174a2b2a8f9e86ee8f992556dd4820484be3.tar.xz
forums-df77174a2b2a8f9e86ee8f992556dd4820484be3.zip
Merge pull request #3280 from MGaetan89/ticket/13494
[ticket/13494] Change set_config() calls with $config->set() * MGaetan89/ticket/13494: [ticket/13494] Update calls to `set_config()`
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/style_update_p1.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/style_update_p1.php b/phpBB/phpbb/db/migration/data/v310/style_update_p1.php
index e8d3a3af64..918a565e06 100644
--- a/phpBB/phpbb/db/migration/data/v310/style_update_p1.php
+++ b/phpBB/phpbb/db/migration/data/v310/style_update_p1.php
@@ -62,6 +62,8 @@ class style_update_p1 extends \phpbb\db\migration\migration
public function styles_update()
{
+ global $config;
+
// Get list of valid 3.1 styles
$available_styles = array('prosilver');
@@ -163,7 +165,7 @@ class style_update_p1 extends \phpbb\db\migration\migration
$default_style = $this->db->sql_fetchfield($result);
$this->db->sql_freeresult($result);
- set_config('default_style', $default_style);
+ $config->set('default_style', $default_style);
$sql = 'UPDATE ' . USERS_TABLE . ' SET user_style = 0';
$this->sql_query($sql);