r35326 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35325‎ | r35326 | r35327 >
Date:18:20, 25 May 2008
Author:aaron
Status:old
Tags:
Comment:
Move 'NewRevisionFromEditComplete' to proper place (bug 14251)
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -2612,6 +2612,7 @@
26132613 $nullRevId = $nullRevision->insertOn( $dbw );
26142614
26152615 $article = new Article( $nt );
 2616+ wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) );
26162617
26172618 # Change the name of the target page:
26182619 $dbw->update( 'page',
@@ -2625,8 +2626,6 @@
26262627 $fname
26272628 );
26282629 $nt->resetArticleID( $oldid );
2629 -
2630 - wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) );
26312630
26322631 # Recreate the redirect, this time in the other direction.
26332632 if( $createRedirect || !$wgUser->isAllowed('suppressredirect') ) {
@@ -2708,6 +2707,7 @@
27092708 $nullRevId = $nullRevision->insertOn( $dbw );
27102709
27112710 $article = new Article( $nt );
 2711+ wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) );
27122712
27132713 # Rename page entry
27142714 $dbw->update( 'page',
@@ -2721,8 +2721,6 @@
27222722 $fname
27232723 );
27242724 $nt->resetArticleID( $oldid );
2725 -
2726 - wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) );
27272725
27282726 if( $createRedirect || !$wgUser->isAllowed('suppressredirect') ) {
27292727 # Insert redirect

Status & tagging log