jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Catrope: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: Ie27c8ea4d071a62fc5ab79828ff413f7997dc1b0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Sbisson <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Sbisson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits