From: Alexandre Emsenhuber Date: Sat, 3 Mar 2012 16:36:37 +0000 (+0000) Subject: * (bug 34937) Fix for r107636: call WikiPage::onArticleCreate() when moving a page... X-Git-Tag: 1.31.0-rc.0~24417 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=880477b0adc7798d277f727df280ff8bb61d2f02;p=lhc%2Fweb%2Fwiklou.git * (bug 34937) Fix for r107636: call WikiPage::onArticleCreate() when moving a page an not overriding the redirect --- 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 );