https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112951

Revision: 112951
Author:   ialex
Date:     2012-03-03 16:36:37 +0000 (Sat, 03 Mar 2012)
Log Message:
-----------
* (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
    trunk/phase3/includes/Title.php

Modified: branches/REL1_19/phase3/includes/Title.php
===================================================================
--- branches/REL1_19/phase3/includes/Title.php  2012-03-03 14:28:19 UTC (rev 
112950)
+++ branches/REL1_19/phase3/includes/Title.php  2012-03-03 16:36:37 UTC (rev 
112951)
@@ -3639,6 +3639,10 @@
 
                $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 );

Modified: trunk/phase3/includes/Title.php
===================================================================
--- trunk/phase3/includes/Title.php     2012-03-03 14:28:19 UTC (rev 112950)
+++ trunk/phase3/includes/Title.php     2012-03-03 16:36:37 UTC (rev 112951)
@@ -3639,6 +3639,10 @@
 
                $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 );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to