From ee54cd576af5835bcb44e95e72b77d567b5405e2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 24 Jun 2011 07:08:44 +0000 Subject: [PATCH] Minor code cleanups --- includes/specials/SpecialPrefixindex.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/includes/specials/SpecialPrefixindex.php b/includes/specials/SpecialPrefixindex.php index cf1dbbd7ac..1421a61777 100644 --- a/includes/specials/SpecialPrefixindex.php +++ b/includes/specials/SpecialPrefixindex.php @@ -56,18 +56,17 @@ class SpecialPrefixindex extends SpecialAllpages { ); $showme = ''; - if ( $this->including() && ( $par == '' ) ) { + if ( $this->including() && $par == '' ) { // Bug 27864: if transcluded, show all pages instead of the form - $showme = ' '; - } elseif( isset( $par ) ){ + } elseif( isset( $par ) ) { $showme = $par; - } elseif( $prefix != '' ){ + } elseif( $prefix != '' ) { $showme = $prefix; - } elseif( $from != '' ){ + } elseif( $from != '' ) { // For back-compat with Special:Allpages $showme = $from; } - if ($showme != '' || $namespace) { + if ( $showme != '' || $namespace ) { $this->showPrefixChunk( $namespace, $showme, $from ); } else { $wgOut->addHTML( $this->namespacePrefixForm( $namespace, null ) ); -- 2.20.1