[pmwiki-devel] Wiki links with title/alt text attribute

John Rankin john.rankin at affinity.co.nz
Tue May 3 04:20:27 CDT 2011


> In fact, the MakePageName function contains the line
>
>   $str = preg_replace('/[#?].*$/', '', $str);
>
> so I think the line in trails.php that does
>
>   preg_replace('/[#?].+/', '', $match[3])
>
> is redundant and can be removed.

Changing trails.php line 74 from

$tgt = MakePageName($trailname,
                               preg_replace('/[#?].+/', '',
                               $match[3]));

to

$tgt = MakePageName($trailname, $match[3]);

fixed the problem. MakePageName removes any anchors
and the book is now coming out as expected. See
http://juxtr.net/books/NineMonthsInNewZealand/HomePage

Might that change be included in the core?

JR
-- 
John Rankin




More information about the pmwiki-devel mailing list