[pmwiki-users] Drafts vs. RecentChanges

Robert Riebisch rr at bttr-software.de
Thu Nov 21 12:13:40 PST 2019


Hi Petko,

> You can add to config.php:
> 
>    if ( @$_POST['postedit']>'' || @$_POST['postdraft']>'' )
>      unset($RecentChangesFmt);
> 
> This disables both Site.AllRecentChanges and Group.RecentChanges.

Worked fine for me. Thanks again.

> To only disable one of these, unset it individually:
> 
>    $RecentChangesFmt['$SiteGroup.AllRecentChanges']
>    $RecentChangesFmt['$Group.RecentChanges']
> 
> If you do this, add a note to remember to remove it if you disable 
> drafts, or if you add more editors -- otherwise the "Save and edit" 
> edits will not appear in RecentChanges.

I didn't test this.

>> Would like to add the answer to 
>> <https://www.pmwiki.org/wiki/PmWiki/Drafts>.

Done.
see https://www.pmwiki.org/wiki/PmWiki/Drafts?action=diff#diff1574366688

Cheers,
Robert
-- 
              +++ BTTR Software +++
     Home page: https://www.bttr-software.de/
DOS ain't dead: https://www.bttr-software.de/forum/



More information about the pmwiki-users mailing list