* Fix explicit s-maxage=0 on raw pages; should help with proxy issues in
[lhc/web/wiklou.git] / includes / SpecialPrefixindex.php
index 29e5637..d8adcbe 100644 (file)
@@ -17,7 +17,7 @@ function wfSpecialPrefixIndex( $par=NULL, $specialPage ) {
        # GET values
        $from = $wgRequest->getVal( 'from' );
        $namespace = $wgRequest->getInt( 'namespace' );
-       
+
        $namespaces = $wgContLang->getNamespaces();
 
        $indexPage = new SpecialPrefixIndex();
@@ -30,7 +30,7 @@ function wfSpecialPrefixIndex( $par=NULL, $specialPage ) {
                wfMsg( 'allarticles' )
                );
 
-       
+
        if ( isset($par) ) {
                $indexPage->showChunk( $namespace, $par, $specialPage->including() );
        } elseif ( isset($from) ) {
@@ -44,6 +44,8 @@ class SpecialPrefixindex extends SpecialAllpages {
        var $maxPerPage=960;
        var $topLevelMax=50;
        var $name='Prefixindex';
+       # Determines, which message describes the input field 'nsfrom', used in function namespaceForm (see superclass SpecialAllpages)
+       var $nsfromMsg='allpagesprefix';
 
 /**
  * @param integer $namespace (Default NS_MAIN)
@@ -53,7 +55,7 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) {
        global $wgOut, $wgUser, $wgContLang;
 
        $fname = 'indexShowChunk';
-       
+
        $sk = $wgUser->getSkin();
 
        $fromTitle = Title::newFromURL( $from );
@@ -62,7 +64,7 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) {
         }
 
        $fromKey = is_null( $fromTitle ) ? '' : $fromTitle->getDBkey();
-       
+
        $dbr =& wfGetDB( DB_SLAVE );
 
        $res = $dbr->select( 'page',
@@ -83,12 +85,12 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) {
 
        $n = 0;
        $out = '<table style="background: inherit;" border="0" width="100%">';
-       
+
        $namespaces = $wgContLang->getFormattedNamespaces();
        while( ($n < $this->maxPerPage) && ($s = $dbr->fetchObject( $res )) ) {
                $t = Title::makeTitle( $s->page_namespace, $s->page_title );
                if( $t ) {
-                       $link = ($s->page_is_redirect ? '<div class="allpagesredirect">' : '' ) . 
+                       $link = ($s->page_is_redirect ? '<div class="allpagesredirect">' : '' ) .
                                $sk->makeKnownLinkObj( $t, htmlspecialchars( $t->getText() ), false, false ) .
                                ($s->page_is_redirect ? '</div>' : '' );
                } else {
@@ -107,7 +109,7 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) {
                $out .= '</tr>';
        }
        $out .= '</table>';
-       
+
        if ( $including ) {
                $out2 = '';
        } else {