[pmwiki-users] Urgent: $DefaultPage stopped working ??

Hans design5 at softflow.co.uk
Sat May 19 01:42:02 CDT 2007


Saturday, May 19, 2007, 7:36:30 AM, Patrick R. Michaud wrote:

> In fact, it doesn't have to be local/config.php, one can have multiple
> specialized per-wiki configuration files.  For example, the settings for
> $DefaultPage could be put in a "local/config-early.php" file for each
> wiki:

>   <?php
>   $FarmPubDirUrl = 'http://wiki.hindu.org/pmwiki/pub';
>   ## global passwords here snipped ###
>   $EnablePageListProtect = 0;
>   include_once('local/config-early.php'); ### <----- load wiki's early customizations
>   include_once("$FarmD/cookbook/cluster.php");
>   ...

Or if this feels too confusing, one could create a farmconfig-late.php
file which holds all the include_once lines to load cookbook scripts
common to all wikis, and then add to the bottom or after the initial
customisations in the wiki's config.php:

include_once("$FarmD/local/farmconfig-late.php");


  ~Hans




More information about the pmwiki-users mailing list