aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migration
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-07-21 11:29:37 +0200
committerTristan Darricau <github@nicofuma.fr>2014-07-21 11:29:37 +0200
commitdb3bddf15c4de1b75b0831be73aec24a44230ed4 (patch)
treee15e067c5a8ff855bbed128075e8aab7cb445468 /phpBB/phpbb/db/migration
parent449ffbe7992bcda2f28ceaf861329e913575149a (diff)
downloadforums-db3bddf15c4de1b75b0831be73aec24a44230ed4.tar
forums-db3bddf15c4de1b75b0831be73aec24a44230ed4.tar.gz
forums-db3bddf15c4de1b75b0831be73aec24a44230ed4.tar.bz2
forums-db3bddf15c4de1b75b0831be73aec24a44230ed4.tar.xz
forums-db3bddf15c4de1b75b0831be73aec24a44230ed4.zip
[ticket/12882] Update search_type when it's not prefixed by phpbb_search
PHPBB3-12882
Diffstat (limited to 'phpBB/phpbb/db/migration')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/namespaces.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/namespaces.php b/phpBB/phpbb/db/migration/data/v310/namespaces.php
index 2a4935395e..709317023a 100644
--- a/phpBB/phpbb/db/migration/data/v310/namespaces.php
+++ b/phpBB/phpbb/db/migration/data/v310/namespaces.php
@@ -26,6 +26,10 @@ class namespaces extends \phpbb\db\migration\migration
{
return array(
array('if', array(
+ (is_file($this->phpbb_root_path . 'phpbb/search/' . $this->config['search_type'] . $this->php_ext)),
+ array('config.update', array('search_type', '\\phpbb\\search\\' . $this->config['search_type'])),
+ )),
+ array('if', array(
(preg_match('#^phpbb_search_#', $this->config['search_type'])),
array('config.update', array('search_type', str_replace('phpbb_search_', '\\phpbb\\search\\', $this->config['search_type']))),
)),