[pmwiki-users] Bug in (:title:) markup?
    Hans 
    design5 at softflow.co.uk
       
    Sun Jan 27 05:20:24 CST 2008
    
    
  
Sunday, January 27, 2008, 11:16:31 AM, Hans wrote:
> Add this to config.php, you do not need to change stdmarkup.php:
perhaps better call the function 'SetTitleMarkup':
## (:title ...:) First title wins, any subsequent (:title ...:) is ignored.
Markup('title','directives',
  '/\\(:title\\s(.*?):\\)/ei',
  "SetTitleMarkup(\$pagename, PSS('$1')) ");
function SetTitleMarkup($pagename, $arg) {
   static $tset = 1;
      if ($tset==1)
         PCache($pagename, $zz=array('title' => SetProperty($pagename, 'title', $arg )));
      $tset++;
}
  ~Hans
    
    
More information about the pmwiki-users
mailing list