Recent Changes - Search:

PITS main list

edit sidebar

Main sidebar

PmWiki

pmwiki.org

00069

Summary: $LinkPageSelfFmt incorrectly used with fragments
Created: 2004-10-04 01:30
Status: Closed - fixed for 2.0.devel12
Category: Bug
From: jr
Assigned:
Priority: 4
Version: pmwiki2 dev 11
OS: all

Description: If an author refers to the current page with a ? or # suffix, pmwiki incorrectly uses the self-reference format. It should only use this format with references without a # or ? qualifier.

To fix this, change

 $fmt = ($tgtname==$pagename) ? $LinkPageSelfFmt : $LinkPageExistsFmt;

to

 $fmt = ($tgtname==$pagename && $qf=='') ? $LinkPageSelfFmt : $LinkPageExistsFmt;
Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 11:56 AM