Prtksxna has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/366592 )

Change subject: HTMLFormField: Use vertical-label for getLabelAlignOOUI
......................................................................

HTMLFormField: Use vertical-label for getLabelAlignOOUI

Use the default 'top' unless 'vertical-label' is explicitly
set to 'false', in which case it is set to 'left'.

Change-Id: I5d8ae261c9c6dc34c7e93c346140d668f8209a6a
---
M includes/htmlform/HTMLFormField.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/92/366592/1

diff --git a/includes/htmlform/HTMLFormField.php 
b/includes/htmlform/HTMLFormField.php
index 83a8023..86f134d 100644
--- a/includes/htmlform/HTMLFormField.php
+++ b/includes/htmlform/HTMLFormField.php
@@ -655,6 +655,9 @@
         * @return string 'left', 'right', 'top' or 'inline'
         */
        protected function getLabelAlignOOUI() {
+               if ( $this->mParams['vertical-label'] === false ) {
+                       return 'left';
+               }
                return 'top';
        }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5d8ae261c9c6dc34c7e93c346140d668f8209a6a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Prtksxna <[email protected]>

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

Reply via email to