Ignore:
Timestamp:
02/19/08 22:26:25 (4 years ago)
Author:
hverton
Message:

added datediff() function which returns the difference between two timestamps in text
updated the wikilink detection code in parsemessage()
added a "vertical-align:text-top" to the imagelink smarty function, to align the image properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/forum_functions_include.php

    r1274 r1291  
    400400        $result = dbquery("SELECT DISTINCT tag FROM ".$db_prefix."wiki_pages"); 
    401401        while ($data = dbarray($result)) { 
    402             $search[] = "/(\s)(".$data['tag'].")(\s)/is"; 
     402            $search[] = "/([[:space:]]|=|^)?(".$data['tag'].")([[:space:]]+?|\]|$)/i"; 
    403403            $replace[] = "\\1[wiki]\\2[/wiki]\\3"; 
    404404        } 
Note: See TracChangeset for help on using the changeset viewer.