[pmwiki-users] Link text in (parentheses) will not be not	displayed?
    Derek Lerner 
    lernaway at gmail.com
       
    Tue Dec  4 20:39:27 CST 2007
    
    
  
Finally found the difference between the two pmwiki.php files which  
was causing the ability to hide tags/category-links via [[!(cat- 
name)]] to not work correctly.
In pmwiki.php at "function MakeLink" around line 1164
- - - - - - - - - - - -
nonfunctioning
- - - - - - - - - - - -
if (is_null($txt)) {
       $txt = preg_replace('/\\([^)]*\\)/','',$tgt);
       if ($m[1]=='<:page>') {
         $txt = preg_replace('!/\\s*$!', '', $txt);
         $txt = preg_replace('!^.*[^<]/!', '', $txt);
       }
- - - - - - - - - - - - - - - -
functioning properly
- - - - - - - - - - - - - - - -
if (is_null($txt)) {
       $txt = preg_replace('/\\([^)]*\\)/','',$tgt);
       if ($m[1]=='<:page>') $txt = preg_replace('!^.*[^<]/!','',$txt);
       $txt = $txt;
     }
- - - - - - - - - - - - - - - -
Kind regards,
Derek
    
    
More information about the pmwiki-users
mailing list