Changeset 1274 in ExiteCMS for trunk/includes/forum_functions_include.php
- Timestamp:
- 02/12/08 14:46:25 (4 years ago)
- File:
-
- 1 edited
-
trunk/includes/forum_functions_include.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/forum_functions_include.php
r1273 r1274 400 400 $result = dbquery("SELECT DISTINCT tag FROM ".$db_prefix."wiki_pages"); 401 401 while ($data = dbarray($result)) { 402 $search[] = "/(\ b".$data['tag']."\b)/is";403 $replace[] = " [wiki]\\1[/wiki]";402 $search[] = "/(\s)(".$data['tag'].")(\s)/is"; 403 $replace[] = "\\1[wiki]\\2[/wiki]\\3"; 404 404 } 405 405 $message = preg_replace($search, $replace, $message);
Note: See TracChangeset
for help on using the changeset viewer.
