Update Postgres with missing uploadstash tables
[lhc/web/wiklou.git] / includes / ChangeTags.php
index 3366f69..c8e522d 100644 (file)
@@ -1,8 +1,5 @@
 <?php
 
-if( !defined( 'MEDIAWIKI' ) )
-       die;
-
 class ChangeTags {
        static function formatSummaryRow( $tags, $page ) {
                if( !$tags )
@@ -165,7 +162,8 @@ class ChangeTags {
                if ( !$wgUseTagFilter || !count( self::listDefinedTags() ) )
                        return $fullForm ? '' : array();
 
-               $data = array( wfMsgExt( 'tag-filter', 'parseinline' ), Xml::input( 'tagfilter', 20, $selected ) );
+               $data = array( Html::rawElement( 'label', array( 'for' => 'tagfilter' ), wfMsgExt( 'tag-filter', 'parseinline' ) ),
+                       Xml::input( 'tagfilter', 20, $selected ) );
 
                if ( !$fullForm ) {
                        return $data;
@@ -173,13 +171,17 @@ class ChangeTags {
 
                $html = implode( '&#160;', $data );
                $html .= "\n" . Xml::element( 'input', array( 'type' => 'submit', 'value' => wfMsg( 'tag-filter-submit' ) ) );
-               $html .= "\n" . Html::hidden( 'title', $title-> getPrefixedText() );
+               $html .= "\n" . Html::hidden( 'title', $title->getPrefixedText() );
                $html = Xml::tags( 'form', array( 'action' => $title->getLocalURL(), 'method' => 'get' ), $html );
 
                return $html;
        }
 
-       /** Basically lists defined tags which count even if they aren't applied to anything */
+       /**
+        *Basically lists defined tags which count even if they aren't applied to anything
+        *
+        * @return array
+        */
        static function listDefinedTags() {
                // Caching...
                global $wgMemc;