[pmwiki-users] Odd phenom/apparent bug? on pmwiki.org

John Rankin john.rankin at affinity.co.nz
Sun Mar 26 18:40:21 CST 2006

On Sunday, 26 March 2006 11:07 PM, Hans <design at softflow.co.uk> wrote:
>Sunday, March 26, 2006, 12:34:55 AM, Hans wrote:
>> Still something odd showing that I would like to understand:
>> Gemini skin uses $Titlespaced for the page title in the template.
>> Now MarkupExtensions display with the title "Markup Extensionsspaced",
>> but the page has (:title Markup Extensions:)
>> Why? Is $Titlespaced not right anymore? It has worked everywhere
>> before.
>I investigated this further, and come to the conclusion that this is
>caused by a bug in the markup extension script, which is enabled on
>the page in question.
>In particular it is caused in the 'mac' (macrons) section by the code
>     $FmtP['/\\$Title/e'] = '(@$PCache[$pagename]["title"]) ?
>          Macronise($PCache[$pagename]["title"]) :
>          (($GLOBALS["SpaceWikiWords"]) ? \'$Namespaced\' :
>Having a skin template with $Titlespaced will have the page title
>appended by 'spaced', and pages with no set title will get the title
>"$Namespacedspacedspaced" (literal!)
>Disabling 'mac' in markup extensions will make $Titlespaced work
> Hans                           
Thanks for catching this. 
It looks as if the above code (which was OK under 2.0)
is incompatible with 2.1 with its new $FmtPV. I'll see 
if I can fix it without breaking older installations.

John Rankin

More information about the pmwiki-users mailing list