Merge "Remove unneeded empty lines at begin of if/else/foreach body"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 19 Jun 2015 18:25:57 +0000 (18:25 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 19 Jun 2015 18:25:57 +0000 (18:25 +0000)
includes/htmlform/HTMLCheckField.php
includes/specials/SpecialNewpages.php

index 90293f4..dc2de65 100644 (file)
@@ -20,9 +20,15 @@ class HTMLCheckField extends HTMLFormField {
                        $attr['class'] = $this->mClass;
                }
 
+               $attrLabel = array( 'for' => $this->mID );
+               if ( isset( $attr['title'] ) ) {
+                       // propagate tooltip to label
+                       $attrLabel['title'] = $attr['title'];
+               }
+
                $chkLabel = Xml::check( $this->mName, $value, $attr )
                . '&#160;'
-               . Html::rawElement( 'label', array( 'for' => $this->mID ), $this->mLabel );
+               . Html::rawElement( 'label', $attrLabel, $this->mLabel );
 
                if ( $wgUseMediaWikiUIEverywhere || $this->mParent instanceof VFormHTMLForm ) {
                        $chkLabel = Html::rawElement(
index 899c736..4e8a3ab 100644 (file)
@@ -233,7 +233,7 @@ class SpecialNewpages extends IncludableSpecialPage {
                                'name' => 'invert',
                                'label-message' => 'invert',
                                'default' => $nsinvert,
-                               'tooltip' => $this->msg( 'tooltip-invert' )->text(),
+                               'tooltip' => 'invert',
                        ),
                        'tagFilter' => array(
                                'type' => 'tagfilter',