(bug 27864) Transcluding {{Special:Prefix}} with empty prefix now lists all pages.
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 14 May 2011 14:15:35 +0000 (14:15 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 14 May 2011 14:15:35 +0000 (14:15 +0000)
Removed All pages link which doesn't make sense
Patch by Salvatore Ingala

Put ST47 on the proper place in CREDITS

CREDITS
RELEASE-NOTES-1.19
includes/specials/SpecialPrefixindex.php

diff --git a/CREDITS b/CREDITS
index 834f3b6..9f76a0d 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -134,10 +134,11 @@ following names for their contribution to the product.
 * RenĂ© Kijewski
 * Robert Treat
 * RockMFR
-* ST47
+* Salvatore Ingala
 * Scott Colcord
 * Simon Walker
 * Solitarius
+* ST47
 * Stefano Codari
 * Str4nd
 * svip
index 180cb7b..d9950d3 100644 (file)
@@ -35,6 +35,8 @@ used in Tiff files.
   the user a page named [[:]] already exists.
 * (bug 28960) Added more messages to Special:EmailUser.
 * (bug 23002) Imagelinks table not updated after imagemove.
+* (bug 27864) Transcluding {{Special:Prefix}} with empty prefix now lists all
+  pages.
 
 === API changes in 1.19 ===
 * (bug 27790) add query type for querymodules to action=paraminfo
index ff66cbe..72d7e37 100644 (file)
@@ -56,7 +56,10 @@ class SpecialPrefixindex extends SpecialAllpages {
                );
 
                $showme = '';
-               if( isset( $par ) ){
+               if ( $this->including() && ( $par == '' ) ) {
+                       // Bug 27864: if transcluded, show all pages instead of the form
+                       $showme = ' ';
+               } elseif( isset( $par ) ){
                        $showme = $par;
                } elseif( $prefix != '' ){
                        $showme = $prefix;
@@ -201,8 +204,7 @@ class SpecialPrefixindex extends SpecialAllpages {
                                        <td>' .
                                                $nsForm .
                                        '</td>
-                                       <td id="mw-prefixindex-nav-form">' .
-                                               $sk->linkKnown( $self, wfMsgHtml( 'allpages' ) );
+                                       <td id="mw-prefixindex-nav-form">';
 
                        if( isset( $res ) && $res && ( $n == $this->maxPerPage ) && ( $s = $res->fetchObject() ) ) {
                                $query = array(