Sysadmin:Approved Revs Note
From JFA Wiki
Revision as of 14:22, 1 March 2019 by Greg.Fuller (talk | contribs) (Created page with " age editing allowed by creator only or with approval From: https://stackoverflow.com/questions/5016818/mediawiki-page-editing-allowed-by-creator-only-or-with-approval I am...")
age editing allowed by creator only or with approval
I am using http://www.mediawiki.org/wiki/Extension%3aApproved_Revs for article protection but it didn't fulfil my need it allowed the user to change the currently approved revision of the article and so the change was immediately reflected on the main page so I hacked it a bit, basically you need only one change
go to ApprovedRevs/ApprovedRevs.hooks.php
and find the following code:
static public function setLatestAsApproved( &$article , &$user, $text,
$summary, $flags, $unused1, $unused2, &$flags, $revision, &$status, $baseRevId ) {
this is a function declaration just after it add the following code:
return false; and it will work the way you wanted it to be i.e (the change you did will not be reflected until you approve it)