[pmwiki-users] Edit Page Problem

Dominique Faure dominique.faure at gmail.com
Mon Oct 24 14:51:43 CDT 2005


2005/10/24, Patrick R. Michaud <pmichaud at pobox.com>:
> On Sun, Oct 23, 2005 at 04:43:06PM +0200, Dominique Faure wrote:
> > 2005/10/23, Allyen E. Wilson <awilson at allyenwilson.com>:
> > > When using the "recurve" skin, when I try to edit a page it always
> > > opens the edit page for Main.Homepage. No matter which page I am on
> > > it wants to edit Main.Homepage. Where do I start looking for the fix?
> > > Is it the .tmpl file? I don't think is is the .css file. Other skins
> > > work as expected.
> > >
> > This skin is quite old now and I apologize for still not having enough
> > time/taste/... to synch it to the latest PmWiki features.
> > Thanks for the report, I'll take it in account when upgrading skin.
>
> The problem appears to be in the recurve.php file, where it says
>
>    if($action == $match[1])
>      if($match[4])
>        $text = "<a href='$PageUrl?action=$match[4]' title='$match[5]' class='alt'>$match[2]</a>";
>      else $text = "<p>$match[2]</p>";
>    else
>      $text = "<a href='$PageUrl?action=$match[1]'>$match[2]</a>";
>
> Each of the $PageUrl's needs to be escaped with a backslash, otherwise
> they get replaced by an empty string.  For sites with $EnablePathInfo set
> things still appear to work, but for other sites it always ends up
> at the wiki home page because the ?n=Group.PageName is lost.
>
> Then $text needs to be passed through FmtPageName so the substitutions
> can take place.
>
> Attached is a corrected version of recurve.php -- just drop it into
> the pub/skins/recurve folder until Dominique (or someone else) updates
> the zip file.
>
Many thanks for the patch!
Please use this corrected version until I update the skin.

Regards,
Dominique




More information about the pmwiki-users mailing list