From 880477b0adc7798d277f727df280ff8bb61d2f02 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 3 Mar 2012 16:36:37 +0000 Subject: [PATCH] * (bug 34937) Fix for r107636: call WikiPage::onArticleCreate() when moving a page an not overriding the redirect --- includes/Title.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/Title.php b/includes/Title.php index 218ac2f742..1a8f3e88fa 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3639,6 +3639,10 @@ class Title { $newpage->doEditUpdates( $nullRevision, $wgUser, array( 'changed' => false ) ); + if ( !$moveOverRedirect ) { + WikiPage::onArticleCreate( $nt ); + } + # Recreate the redirect, this time in the other direction. if ( $redirectSuppressed ) { WikiPage::onArticleDelete( $this ); -- 2.20.1