Changeset 1273 in ExiteCMS


Ignore:
Timestamp:
02/12/08 14:21:36 (4 years ago)
Author:
hverton
Message:

Make sure only complete words are checked against the wiki tag list
Corrected the wikilink CSS tag

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/forum_functions_include.php

    r1271 r1273  
    400400        $result = dbquery("SELECT DISTINCT tag FROM ".$db_prefix."wiki_pages"); 
    401401        while ($data = dbarray($result)) { 
    402             $search[] = "/\b(".$data['tag'].")\b/is"; 
    403             $replace[] = "[wiki]\\1[/wiki]"; 
     402            $search[] = "/(\b".$data['tag']."\b)/is"; 
     403            $replace[] = " [wiki]\\1[/wiki] "; 
    404404        } 
    405405        $message = preg_replace($search, $replace, $message); 
  • trunk/themes/ExiteCMS/templates/templates/_stylesheets.tpl

    r1267 r1273  
    3333                        /* image anchors */ 
    3434a img                   { border:none; } 
     35 
     36                        /* wiki links */ 
     37a:link.wiki_link        { text-decoration:none; border-width:0px 0px 1px 0px; border-style:dotted; border-color:#9c0204; } 
    3538 
    3639                        /* horizontal lines */ 
     
    185188.poll                   { height:12px; border:1px #000 solid; } 
    186189 
    187                         /* wiki links */ 
    188 .wiki_link              { color:#9c0204; text-decoration:none; border-bottom:1px dotted color #333333; } 
    189  
    190190/* --- Upgrade admin module -------------------------------- */ 
    191191 
Note: See TracChangeset for help on using the changeset viewer.