some useless calls / unitialized $matches arrays
[lhc/web/wiklou.git] / includes / SpecialAllpages.php
index 3ab3a47..904b087 100644 (file)
@@ -40,6 +40,8 @@ class SpecialAllpages {
        var $maxPerPage=960;
        var $topLevelMax=50;
        var $name='Allpages';
+       # Determines, which message describes the input field 'nsfrom' (->SpecialPrefixindex.php)
+       var $nsfromMsg='allpagesfrom';
 
 /**
  * HTML for the top form
@@ -61,7 +63,7 @@ function namespaceForm ( $namespace = NS_MAIN, $from = '' ) {
        $out .= "
 <table id='nsselect' class='allpages'>
        <tr>
-               <td align='right'>" . wfMsgHtml('allpagesfrom') . "</td>
+               <td align='right'>" . wfMsgHtml($this->nsfromMsg) . "</td>
                <td align='left'><label for='nsfrom'>$frombox</label></td>
        </tr>
        <tr>    
@@ -148,7 +150,7 @@ function showToplevel ( $namespace = NS_MAIN, $including = false ) {
        // If there are only two or less sections, don't even display them.
        // Instead, display the first section directly.
        if( count( $lines ) <= 2 ) {
-               $this->showChunk( $namespace, '', false, $including );
+               $this->showChunk( $namespace, '', $including );
                return;
        }
 
@@ -186,7 +188,7 @@ function showToplevel ( $namespace = NS_MAIN, $including = false ) {
  * @param integer $namespace (Default NS_MAIN)
  */
 function showline( $inpoint, $outpoint, $namespace = NS_MAIN ) {
-       global $wgOut, $wgLang, $wgUser;
+       global $wgOut, $wgUser;
        $sk = $wgUser->getSkin();
        $dbr =& wfGetDB( DB_SLAVE );
 
@@ -271,6 +273,7 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) {
        }
        $out .= '</table>';
 
+
        if ( $including ) {
                $out2 = '';
        } else {