diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-03-19 01:00:37 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-03-19 01:00:37 +0000 |
| commit | 1dbb0240f59317ff07d1ca2b62f618680df394be (patch) | |
| tree | 72318d813004b279ee1bdfca838b93084484801c /phpBB/includes/functions.php | |
| parent | 4f23d69f63334ccb6d1e7d4b303797b392d0ee8c (diff) | |
| download | forums-1dbb0240f59317ff07d1ca2b62f618680df394be.tar forums-1dbb0240f59317ff07d1ca2b62f618680df394be.tar.gz forums-1dbb0240f59317ff07d1ca2b62f618680df394be.tar.bz2 forums-1dbb0240f59317ff07d1ca2b62f618680df394be.tar.xz forums-1dbb0240f59317ff07d1ca2b62f618680df394be.zip | |
bah
git-svn-id: file:///svn/phpbb/trunk@2338 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 913434ef47..379bbf14af 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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) ); } |
