r112951 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112950‎ | r112951 | r112952 >
Date:16:36, 3 March 2012
Author:ialex
Status:ok
Tags:
Comment:
* (bug 34937) Fix for r107636: call WikiPage::onArticleCreate() when moving a page an not overriding the redirect
Modified paths:
  • /branches/REL1_19/phase3/includes/Title.php (modified) (history)
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -3639,6 +3639,10 @@
36403640
36413641 $newpage->doEditUpdates( $nullRevision, $wgUser, array( 'changed' => false ) );
36423642
 3643+ if ( !$moveOverRedirect ) {
 3644+ WikiPage::onArticleCreate( $nt );
 3645+ }
 3646+
36433647 # Recreate the redirect, this time in the other direction.
36443648 if ( $redirectSuppressed ) {
36453649 WikiPage::onArticleDelete( $this );
Index: branches/REL1_19/phase3/includes/Title.php
@@ -3639,6 +3639,10 @@
36403640
36413641 $newpage->doEditUpdates( $nullRevision, $wgUser, array( 'changed' => false ) );
36423642
 3643+ if ( !$moveOverRedirect ) {
 3644+ WikiPage::onArticleCreate( $nt );
 3645+ }
 3646+
36433647 # Recreate the redirect, this time in the other direction.
36443648 if ( $redirectSuppressed ) {
36453649 WikiPage::onArticleDelete( $this );

Follow-up revisions

RevisionCommit summaryAuthorDate
r113036MFT r112855, r112951reedy14:43, 5 March 2012

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107636* Moved post-deletion code from WikiPage::doDeleteArticle() to WikiPage::doDe...ialex15:54, 30 December 2011

Status & tagging log