To get updates on new site content, like us on Facebook or follow us on Twitter.

Sysadmin:Approved Revs Note

From JFA Wiki

age editing allowed by creator only or with approval


I am using 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)