[pmwiki-users] wikifarm question: autoconfigure a new wiki
john.rankin at affinity.co.nz
Thu Aug 24 23:27:47 CDT 2006
On Friday, 25 August 2006 2:54 PM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>On Fri, Aug 25, 2006 at 11:27:57AM +1200, John Rankin wrote:
>> Is it possible to change the use of 'local' when loading
>> config.php and pgcust's Group.php and Group.Page.php files,
>> to use a variable such as $localDir? $localDir would default
>> to 'local'.
>Sure, we can do this.
>However, I'd like to point out that it's perfectly possible
>to achieve what you want within the existing codebase without
>*too* much work (although yes, it's not *quite* as simple
>as setting a $localDir variable :-).
Indeed; I just thought it seemed silly to duplicate the
existing pmwiki code, except for replacing a constant with
a variable :-)
>Basically, it can be done in the existing codebase by
>adding the following code at the end of farmconfig.php:
>This completely disables the existing "local/" hardcoded files
>and replaces them with includes based on $localDir.
>Still, as you said, it's not a substantial change for us
>make the capability available in the core, so I'll
>probably do it there. (However, to keep consistency
>with the rest of PmWiki the variable will be name $LocalDir
>instead of $localDir.)
>Does that work for you?
Yes, yes, yes!
As always, thank you.
More information about the pmwiki-users