[pmwiki-users] [PATCH] Issue with pmwiki and PHP virtual() function (SSI)
Mikael Nilsson
mini at nada.kth.se
Wed Nov 9 17:57:35 CST 2005
Patrick R. Michaud wrote:
> On Thu, Nov 10, 2005 at 12:23:58AM +0100, Mikael Nilsson wrote:
>
>>To illustrate: in the header I use <!--function:includemeta -->, which
>>is defined in config.php:
>>
>>function includemeta($x) {
>> virtual("/kmr/meta.html");
>>}
>
>
> Faster/easier is to just use <!--file:/path/to/kmr/meta.html--> and
> avoid the includemeta function (and the virtual call) altogether.
> Then, since you aren't calling virtual(), you shouldn't run into
> problems with the current directory changing, and you won't need
> to worry about cleaning up directory paths or switching back.
>
Yeah, that would work in general. However, in my case, the header.html
contains another virtual include of a PHP page generating a sidebar from
an RSS feed (using magpierss), so I'm currently relying on apache
processing the included page... and file: does not do that for me, now
does it :-)
> Please don't patch pmwiki.php (or the other distributed files)--
> there's almost never any need to patch the distribution files as
> the desired settings can nearly always be set in local/config.php
> or by a wrapper script. (And if they can't, let me know and
> I'll fix it so they can.)
I didn't want to, but I still don't see a way around it. The included
sidebar is dynamically generated. Ideas?
/Mikael
--
Plus ça change, plus c'est la même chose
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mini.vcf
Type: text/x-vcard
Size: 244 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20051110/df18e878/attachment.vcf
More information about the pmwiki-users
mailing list