[pmwiki-users] beta25 + trailmenu issue
Christian Schlatter
ch at schlatter.net
Tue Feb 14 23:43:16 CST 2006
I recently updated pmwiki to beta25 and the trailmenu cookbook script
does not work any more as expected. After some debugging I found out
that somehow the ReadTrail function in scripts/trails.php must have
changed. The problem only exists if there is an intermap link including
a ":" in the trail, like e.g.
[[g2:Link1 | Link1 Desc]]
[[g2:Link2 | Link2 Desc]]
On line 54 of scripts/trails.php in the ReadTrail function the lines of
the trail page get parsed. And links with a ":" do not get accepted
anymore as trail entries:
if (!preg_match("/^([#*:]+) \\s*
(\\[\\[([^:#!|][^|:]*?)(\\|.*?)?\\]\\]($SuffixPattern)
^
|
| (($GroupPattern([\\/.]))?$WikiWordPattern)) (.*)/x",$x,$match))
continue;
I'd be glad if it would still be possible to include intermap links in
trail pages. Deleting the ":" solves the problem, but I don't like to
patch the pmwiki core ;-)
ChristianS
More information about the pmwiki-users
mailing list