Function out query building, to allow easier overriding
[lhc/web/wiklou.git] / includes / specials / SpecialRecentchanges.php
index 0a9ad82..2f13fe5 100644 (file)
@@ -493,11 +493,11 @@ class SpecialRecentChanges extends IncludableSpecialPage {
 
                $unconsumed = $opts->getUnconsumedValues();
                foreach( $unconsumed as $key => $value ) {
-                       $out .= Xml::hidden( $key, $value );
+                       $out .= Html::hidden( $key, $value );
                }
 
                $t = $this->getTitle();
-               $out .= Xml::hidden( 'title', $t->getPrefixedText() );
+               $out .= Html::hidden( 'title', $t->getPrefixedText() );
                $form = Xml::tags( 'form', array( 'action' => $wgScript ), $out );
                $panel[] = $form;
                $panelString = implode( "\n", $panel );
@@ -506,8 +506,6 @@ class SpecialRecentChanges extends IncludableSpecialPage {
                        Xml::fieldset( wfMsg( 'recentchanges-legend' ), $panelString, array( 'class' => 'rcoptions' ) )
                );
 
-               $wgOut->addHTML( ChangesList::flagLegend() );
-
                $this->setBottomText( $wgOut, $opts );
        }
 
@@ -673,7 +671,7 @@ class SpecialRecentChanges extends IncludableSpecialPage {
                $options = $nondefaults + $defaults;
 
                $note = '';
-               if( !wfEmptyMsg( 'rclegend', wfMsg('rclegend') ) ) {
+               if( !wfEmptyMsg( 'rclegend' ) ) {
                        $note .= '<div class="mw-rclegend">' . wfMsgExt( 'rclegend', array('parseinline') ) . "</div>\n";
                }
                if( $options['from'] ) {