I use an extension on my local wiki that requires access to the revision id of
an inserted article after the article is saved. I am requesting that it be
added to the ArticleSaveComplete hook fired in Article->doEdit(). There don't
seem to be any downsides to this unless there are issues with databases other
than mySQL that I'm unaware of. The new hook would look something like this:
wfRunHooks( 'ArticleSaveComplete',
array( &$this, &$wgUser, $text, $summary, $flags & EDIT_MINOR, null, null, &$flags, $revisionId )
);
Alternately, the revision object that is created in doEdit before
ArticleSaveComplete is fired could be attached to the Article object's mRevision
member variable so that an extension could call $article->mRevision->mId or
something along those lines.
Version: 1.10.x
Severity: enhancement
URL: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Article.php?view=markup