[pmwiki-users] Not including minor changes in RSS

pmwiki at 911networks.com pmwiki at 911networks.com
Tue Aug 18 14:32:11 CDT 2009


On Mon, 17 Aug 2009 11:43:09 -0700
adam overton <a at plus1plus1plus.org> wrote:

> 
> hi
> is this what you're looking for?
> from http://pmwiki.org/wiki/Cookbook/CustomRecentChanges#minor
> 	Insert the following in your local/config.php
> 
> 	if (@$_POST['diffclass'] == 'minor') {
> 	     unset($RecentChangesFmt['$SiteGroup.AllRecentChanges']);
> 	     unset($RecentChangesFmt['$Group.RecentChanges']);}
> 	Minor changes made after that will not be included in
> Site.AllRecentChanges or the per-group RecentChanges.
> 
> 
> and for RSS, assuming you're doing this by enabling the built in
> 'feeds.php', you can probably do the same as above, though my code
> looks more like:
> 
>      # only add Recent Changes to MyFeedPage if...
>      if (!@$_POST['diffclass'] == 'minor') {
> 	   $RecentChangesFmt[$SiteGroup.MyFeedPage] = '*
> [[{$Group}.{$Name}]]  . . . $CurrentTime: {$LastModifiedSummary}'; }
> 

I have changed the diffclass to:

if (!@$_POST['diffclass'] != 'minor') {
  $RecentChangesFmt['$SiteGroup.AllRecentChanges'] = '*[[{$Group}.{$Name}]]  . . . $CurrentTime: {$LastModifiedSummary}'; }

It still does update the Site.AllRecentChanges with the minor changes checked on. I'm using Pm2.2.4

Any suggestion?

-- 
Thanks



More information about the pmwiki-users mailing list