Index: includes/specials/SpecialPrefixindex.php
===================================================================
--- includes/specials/SpecialPrefixindex.php	(revisione 87122)
+++ includes/specials/SpecialPrefixindex.php	(copia locale)
@@ -56,7 +56,10 @@
 		);
 
 		$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 @@
 					<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(
