1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 23:25:30 +02:00
git-svn-id: file:///svn/phpbb/trunk@2338 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-03-19 01:00:37 +00:00
parent 4f23d69f63
commit 1dbb0240f5

View File

@ -445,8 +445,8 @@ function obtain_word_list(&$orig_word, &$replacement_word)
{
do
{
$orig_word[] = '#\W(' . str_replace('\*', '\w*?', preg_quote($row['word']) ) . ')\W#is';
$replacement_word[] = $row['replacement'];
$orig_word[] = '#(\W)' . str_replace('\*', '\w*?', preg_quote($row['word']) ) . '(\W)#is';
$replacement_word[] = '\1' . $row['replacement'] . '\2';
}
while ( $row = $db->sql_fetchrow($result) );
}