<?php
-if( !defined( 'MEDIAWIKI' ) )
- die;
-
class ChangeTags {
static function formatSummaryRow( $tags, $page ) {
if( !$tags )
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;
$html = implode( ' ', $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;