1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/11700] Only replace phpbb_search in strings that match

PHPBB3-11700
This commit is contained in:
Nils Adermann
2013-09-25 14:40:12 +02:00
parent 3a478cb3e2
commit 9373c0db96

View File

@@ -22,7 +22,7 @@ class namespaces extends \phpbb\db\migration\migration
{
return array(
array('if', array(
(preg_match('#^phpbb_#', $this->config['search_type'])),
(preg_match('#^phpbb_search_#', $this->config['search_type'])),
array('config.update', array('search_type', str_replace('phpbb_search_', 'phpbb\\search\\', $this->config['search_type']))),
)),
);