[pmwiki-users] action=ruletable

Patrick R. Michaud pmichaud at pobox.com
Sat Jan 21 16:07:54 CST 2006


On Sat, Jan 21, 2006 at 10:42:45PM +0100, Joachim Durchholz wrote:
> That's quite mysterious to me though. This code isn't called before 
> PmWiki is fully initialised, so there should be at least *something* in 
> $MarkupTable.
> 
> Things get even more mysterious when I look at the output of 
> ?action=diag. $MarkupTable has a valid value, but MarkupRules is empty.
> 
> Pm: is this normal for ?action=diag, or is this a hint that something is 
> amiss?

It's normal, or at least it's not odd.  $MarkupRules isn't created 
until BuildMarkupRules() is called, and that's only called when
MarkupToHTML() gets called.  Even after $MarkupRules is built, if
someone or a recipe makes a call to Markup() to add a new rule to the
system, then $MarkupRules is unset so that it will be rebuilt on
the next call to MarkupToHTML()/BuildMarkupRules().

If you need $MarkupRules to be set, you might want ?action=ruletable
to explicitly call BuildMarkupRules() before using it.  

Pm




More information about the pmwiki-users mailing list