Verify known image types on upload.
[lhc/web/wiklou.git] / includes / SpecialAllpages.php
index 1853c2e..0525e94 100644 (file)
@@ -1,7 +1,14 @@
 <?php
-
-function wfSpecialAllpages( $par=NULL )
-{
+/**
+ *
+ * @package MediaWiki
+ * @subpackage SpecialPage
+ */
+
+/**
+ *
+ */
+function wfSpecialAllpages( $par=NULL ) {
        global $indexMaxperpage, $toplevelMaxperpage, $wgRequest, $wgOut, $wgLang;
        $indexMaxperpage = 480;
        $toplevelMaxperpage = 50;
@@ -23,8 +30,7 @@ function wfSpecialAllpages( $par=NULL )
        }
 }
 
-function namespaceForm ( $namespace = 0, $from = "" )
-{
+function namespaceForm ( $namespace = 0, $from = '' ) {
        global $wgLang, $wgScript;
 
        $t = Title::makeTitle( NS_SPECIAL, "Allpages" );
@@ -45,13 +51,13 @@ function namespaceForm ( $namespace = 0, $from = "" )
 
        $out = "<div class='namespaceselector'><form method='get' action='{$wgScript}'>";
        $out .= '<input type="hidden" name="title" value="'.$t->getPrefixedText().'" />';
-       $out .= wfMsg ( 'allpagesformtext', $frombox, $namespaceselect, $submitbutton );
+       $out .= wfMsg ( 'allpagesformtext1', $frombox ) . '<br />';
+       $out .= wfMsg ( 'allpagesformtext2', $namespaceselect, $submitbutton );
        $out .= '</form></div>';
        return $out;
 }
 
-function indexShowToplevel ( $namespace = 0 )
-{
+function indexShowToplevel ( $namespace = 0 ) {
        global $wgOut, $indexMaxperpage, $toplevelMaxperpage, $wgLang, $wgRequest, $wgUser;
        $sk = $wgUser->getSkin();
        $fname = "indexShowToplevel";
@@ -152,8 +158,7 @@ function indexShowToplevel ( $namespace = 0 )
        $wgOut->addHtml( $out2 . $out );
 }
 
-function indexShowline( $inpoint, $outpoint, $namespace = 0 )
-{
+function indexShowline( $inpoint, $outpoint, $namespace = 0 ) {
        global $wgOut, $wgLang, $wgUser;
        $sk = $wgUser->getSkin();
        $dbr =& wfGetDB( DB_SLAVE );
@@ -172,8 +177,7 @@ function indexShowline( $inpoint, $outpoint, $namespace = 0 )
        return '<tr><td align="right">'.$out.'</td></tr>';
 }
 
-function indexShowChunk( $from, $namespace = 0 )
-{
+function indexShowChunk( $from, $namespace = 0 ) {
        global $wgOut, $wgUser, $indexMaxperpage, $wgLang;
        $sk = $wgUser->getSkin();
        $maxPlusOne = $indexMaxperpage + 1;
@@ -223,10 +227,11 @@ function indexShowChunk( $from, $namespace = 0 )
                        $sk->makeKnownLink( $wgLang->specialPage( "Allpages" ),
                                wfMsg ( 'allpages' ) );
        if ( ($n == $indexMaxperpage) && ($s = $dbr->fetchObject( $res )) ) {
+               $namespaceparam = $namespace ? "&namespace=$namespace" : "";
                $out2 .= " | " . $sk->makeKnownLink(
                        $wgLang->specialPage( "Allpages" ),
                        wfMsg ( 'nextpage', $s->cur_title ),
-                       "from=" . wfUrlEncode ( $s->cur_title ) );
+                       "from=" . wfUrlEncode ( $s->cur_title ) . $namespaceparam );
        }
        $out2 .= "</td></tr></table><hr />";