Sbisson has uploaded a new change for review.

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

Change subject: Fix Flow board layout on Special:Undelete
......................................................................

Fix Flow board layout on Special:Undelete

A Flow board always need mw-content-{ltr,rtl} class
for layout but core doesn't provide it for special
pages.

By always adding it, it ends up being there twice
(.mw-content-text and .flow-component) in some
cases but doesn't seem to hurt anything.

Bug: T113668
Change-Id: Ie27c8ea4d071a62fc5ab79828ff413f7997dc1b0
---
M includes/View.php
1 file changed, 5 insertions(+), 5 deletions(-)


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

diff --git a/includes/View.php b/includes/View.php
index a0eb9c5..1571904 100644
--- a/includes/View.php
+++ b/includes/View.php
@@ -270,11 +270,11 @@
                        $template = $this->lightncandy->getTemplate( 
'flow_block_loop' );
 
                        $classes = array( 'flow-component', "$page-page" );
-                       // Add mw-content-{ltr,rtl} text if necessary (MW core 
doesn't add it for non-view actions
-                       if ( \Action::getActionName( $this ) !== 'view' ) {
-                               $title = Title::newFromText( 
$apiResponse['title'] );
-                               $classes[] = 'mw-content-' . 
$title->getPageViewLanguage()->getDir();
-                       }
+
+                       // Always add mw-content-{ltr,rtl} class
+                       $title = Title::newFromText( $apiResponse['title'] );
+                       $classes[] = 'mw-content-' . 
$title->getPageViewLanguage()->getDir();
+
                        // Output the component, with the rendered blocks 
inside it
                        $out->addHTML( Html::rawElement(
                                'div',

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie27c8ea4d071a62fc5ab79828ff413f7997dc1b0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Sbisson <[email protected]>

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

Reply via email to