[Pmwiki-users] is "Main" a group, or isn't it?

Patrick R. Michaud pmichaud
Sun Oct 17 08:19:52 CDT 2004


On Sun, Oct 17, 2004 at 09:56:54AM -0400, Robert P. J. Day wrote:
> On Sat, 16 Oct 2004, Patrick R. Michaud wrote:
> 
> > In PmWiki 2.0 the behavior has been changed so that $DefaultGroup's
> > configuration is no longer loaded, and instead a "default.php" file
> > is loaded if no per-group or per-page customization file was found.
> 
> not according to what i'm reading.  in the most recent version of
> pmwiki, i see this at the bottom of scripts/pgcust.php:
> 
> if (file_exists("local/$group.$title.php"))
>   include_once("local/$group.$title.php");
> elseif (file_exists("local/$group.php"))
>   include_once("local/$group.php");
> elseif (file_exists("local/$DefaultGroup.php"))
>   include_once("local/$DefaultGroup.php");
>                       ^^^^^^^^^^^^^
> 
> so i don't see how an explicit "default.php" file is getting pulled
> into this anywhere.

You're probably not running 2.0 then.  The pgcust.php code in 2.0.devel13
looks like:

for($p=$pagename;$p;$p=preg_replace('/\\.*[^.]*$/','',$p)) {
  if (file_exists("local/$p.php")) {
    include_once("local/$p.php");
    return;
  }
}
if (file_exists('local/default.php'))
  include_once('local/default.php');

Pm



More information about the pmwiki-users mailing list