* (bug 34937) Fix for r107636: call WikiPage::onArticleCreate() when moving a page...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 3 Mar 2012 16:36:37 +0000 (16:36 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 3 Mar 2012 16:36:37 +0000 (16:36 +0000)
includes/Title.php

index 218ac2f..1a8f3e8 100644 (file)
@@ -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 );