[pmwiki-users] clue me in -- remove group name from pagelist?

Jo Rhett jrhett at svcolo.com
Thu May 25 15:50:35 CDT 2006


> On Thu, May 25, 2006 at 12:13:02PM -0700, Jo Rhett wrote:
> > That makes sense to me.  Especially if the config.php syntax was to add the
> > item to the array, rather than redefine the array.
> > 
> > array_unshift( $FPLTemplatePageFmt, '{$Group}.PagelistTemplates' );
> > 
> > This syntax is less likely to break an upgrade that changed the defaults
> > for this array, right?
 
On Thu, May 25, 2006 at 03:27:29PM -0500, Patrick R. Michaud wrote:
> Nope.  PmWiki sets a value for $FPLTemplatePagefmt only if the
> admin hasn't already set one.  For some variables (this is one),
> PmWiki figures that if the admin takes over the then it shouldn't
> be second-guessing the admin's intent.
 
Ugh.  Then you have an upgrade problem waiting to happen.  If you define a
value and then the default changes in a later upgrade, the person who has
changed this may face a problem of unexpected behavior.  This is exactly
the kind of thing I prefer to avoid.

-- 
Jo Rhett
senior geek
SVcolo : Silicon Valley Colocation




More information about the pmwiki-users mailing list