Mattflaschen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/221011

Change subject: Temporarily make subpages in occupied namespaces non-Flow again
......................................................................

Temporarily make subpages in occupied namespaces non-Flow again

This will allow ContentHandler::getDefaultModelFor to do the right
thing for wikitext subpages last edited before $wgContentHandlerUseDB
was turned on.

This should go to production.  Then, Kunal's script for T103388
should be run on all WMF wikis.  Then, this can be reverted.

Bug: T103776
Change-Id: I7af2e61dbb4968977c0898d20de24f8ce5f59f12
---
M includes/TalkpageManager.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/11/221011/1

diff --git a/includes/TalkpageManager.php b/includes/TalkpageManager.php
index 7a93e5c..d399024 100644
--- a/includes/TalkpageManager.php
+++ b/includes/TalkpageManager.php
@@ -106,7 +106,7 @@
                        if ( in_array( $title->getPrefixedText(), 
$this->occupiedPages ) ) {
                                return true;
                        }
-                       if ( in_array( $title->getNamespace(), 
$this->occupiedNamespaces ) ) {
+                       if ( !$title->isSubpage() && in_array( 
$title->getNamespace(), $this->occupiedNamespaces ) ) {
                                return true;
                        }
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/221011
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7af2e61dbb4968977c0898d20de24f8ce5f59f12
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <mflasc...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to