aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/extension/manager.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-07-27 11:08:13 +0200
committerTristan Darricau <github@nicofuma.fr>2014-07-27 11:08:13 +0200
commita8e81b6e9f42c3187d7b17c6bb5da052c28944a6 (patch)
treedcbdcb27e76bffef7236e1395f82f17911ec02dd /phpBB/phpbb/extension/manager.php
parente4a829071ea4ce8cea52103239dc8d75785ec019 (diff)
downloadforums-a8e81b6e9f42c3187d7b17c6bb5da052c28944a6.tar
forums-a8e81b6e9f42c3187d7b17c6bb5da052c28944a6.tar.gz
forums-a8e81b6e9f42c3187d7b17c6bb5da052c28944a6.tar.bz2
forums-a8e81b6e9f42c3187d7b17c6bb5da052c28944a6.tar.xz
forums-a8e81b6e9f42c3187d7b17c6bb5da052c28944a6.zip
[ticket/12870] Create the migrations table with a method in the migrator
PHPBB3-12870
Diffstat (limited to 'phpBB/phpbb/extension/manager.php')
-rw-r--r--phpBB/phpbb/extension/manager.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/phpbb/extension/manager.php b/phpBB/phpbb/extension/manager.php
index 98b2654980..4a12e9ec8c 100644
--- a/phpBB/phpbb/extension/manager.php
+++ b/phpBB/phpbb/extension/manager.php
@@ -78,8 +78,11 @@ class manager
$this->extensions = array();
// Do not try to load any extensions if the extension table
- // does not exist. (The table is crated by the firsts migrations).
- if (version_compare($this->config['version'], '3.1.0-dev', '<'))
+ // does not exist or when installing or updating.
+ // Note: database updater invokes this code, and in 3.0
+ // there is no extension table therefore the rest of this function
+ // fails
+ if (defined('IN_INSTALL') || version_compare($this->config['version'], '3.1.0-dev', '<'))
{
return;
}