[Pmwiki-users] printable-page not working

Patrick R. Michaud pmichaud
Tue Jul 29 22:10:35 CDT 2003


Actually, what might fix the problem is to change the first line
of printable-page.php from

$PageFooterFmt = str_replace("<br /></td>",
    "<br /><a href='$PageUrlFmt?action=print' target='_blank'>Printable Version<
/a></td>",
    $PageFooterFmt);

to

$PageFooterFmt = str_replace("<br /></td>",
    "<br /><a href='\$PageUrl?action=print' target='_blank'>Printable Version<
/a></td>",
    $PageFooterFmt);

It's a subtle difference of using \$PageUrl instead of $PageUrlFmt, but 
using $PageUrl in a ...Fmt string will cause cause the format routine
to change the '?' to a '&' as appropriate depending on the system 
configuration.  I'm not sure that $PageUrlFmt (which converts to 
$ScriptUrl/$Group/$Title_ or somesuch) will have the same result.

Pm




More information about the pmwiki-users mailing list