[pmwiki-users] Bug in (:title:) markup?
marc
gmane at auxbuss.com
Mon Jan 28 14:26:23 CST 2008
Hans said...
> 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++;
> }
Nice one, Hans. Thanks very much.
(Although I'll be using $tset = false; etc. ;-) )
Btw, why are you sending to gmane.spam.detected?
--
Cheers,
Marc
More information about the pmwiki-users
mailing list