Manual talk:Article.php
From MediaWiki.org
Note that Article::doEdit accepts parameters as flags. However, the combination of EDIT_MINOR | EDIT_SUPPRESS_RC makes the article show in the history, as the flags are mutually exclusive.
[edit] Discrepancy between code and documentation (HOOKS)
I have the FlaggedRevs extension installed (MW 1.15.3) and it uses the ArticleUpdateBeforeRedirect hook provided by Article.php, the documentation from hooks.txt (and the website) says:
'ArticleUpdateBeforeRedirect': After a page is updated (usually on save), before the user is redirected back to the page &$article: the article &$sectionanchor: The section anchor link (e.g. "#overview" ) &$extraq: Extra query parameters which can be added via hooked functions
But the code in Article.php:
includes/Article.php: wfRunHooks( 'ArticleUpdateBeforeRedirect', array( $this, &$sectionanchor, &$extraQuery ) );
I changed the code in FlaggedRevs.hooks.php to match the code above, and it works. I am by no means a PHP expert, so I may be completely off, in that case I am sure somebody will correct me...