[Pmwiki-users] bug in WikiWord#label processing?
John Rankin
john.rankin
Mon Nov 10 13:53:42 CST 2003
Fred, try something like the following in local.php:
$WikiPageExistsFragFmt =
"<a class='wikiword' href='\$PageUrl\$Fragment'>\$LinkText</a>";
$WikiPageExistsFmt =
"<a class='wikiword' href='\$PageUrl'>\$LinkText</a>";
$FmtWikiLink = 'MyFmtWikiLink';
function MyFmtWikiLink($pat,$ref,$btext,$out=NULL,$pname=NULL) {
global $WikiPageExistsFmt,$WikiPageExistsFragFmt;
$h=$WikiPageExistsFmt;
if (strstr($ref,'#')) {
$WikiPageExistsFmt=$WikiPageExistsFragFmt;
}
$r = FmtWikiLink($pat,$ref,$btext,$out,$pname);
$WikiPageExistsFmt=$h;
return $r;
}
Hope this helps.
JR
--
John Rankin
On Tuesday, 11 November 2003 9:17 AM, Fred Henle <fred_henle at mercersburg.edu> wrote:
I struggled with that bug for a while last month and then gave up. What
is your local fix?
Fred
_______________________________________________
Pmwiki-users mailing list
Pmwiki-users at pmichaud.com
http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
More information about the pmwiki-users
mailing list