mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 15:16:16 +02:00
[ticket/12882] Update search_type when it's not prefixed by phpbb_search
PHPBB3-12882
This commit is contained in:
parent
449ffbe799
commit
db3bddf15c
@ -25,6 +25,10 @@ class namespaces extends \phpbb\db\migration\migration
|
||||
public function update_data()
|
||||
{
|
||||
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']))),
|
||||
|
Loading…
x
Reference in New Issue
Block a user