[pmwiki-users] How to exclude Draft pages from RecentChanges?

Roman romat2 at gmail.com
Tue Apr 18 11:18:52 CDT 2006


To eliminate possible dependencies I tried fresh installation of
version 2.1.5 with following (and the only) lines in config.php

$EnableDrafts = 1;
if (substr($pagename, -6) == '-Draft')
  $RecentChangesFmt = array();

and draft pages are still being logged.

Roman

On 4/18/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Tue, Apr 18, 2006 at 04:45:12PM +0200, Roman wrote:
> > If we want to exclude page of a known name from RecentChanges we can
> > use local configuration files for that. But how to exclude all Draft
> > pages? I put following lines to config.php but it does not work.
> >
> > if (substr($pagename, -6) == '-Draft')
> >   $RecentChangesFmt = array();
>
> Seems like that ought to work.  Keep in mind that this change
> won't remove any existing -Draft pages listed in RecentChanges,
> it just prevents new ones (or updates) from appearing.
>
> Pm
>




More information about the pmwiki-users mailing list