Move initial setting of $extNode out of the conditional
authorReedy <reedy@wikimedia.org>
Thu, 16 Jan 2014 02:04:32 +0000 (02:04 +0000)
committerReedy <reedy@wikimedia.org>
Tue, 21 Jan 2014 22:42:34 +0000 (22:42 +0000)
Change-Id: I3d13bfde15085d8c17ef41c6729bec2e9f8f84a2

includes/specials/SpecialVersion.php

index 8d7bd54..e8aa9b4 100644 (file)
@@ -57,9 +57,9 @@ class SpecialVersion extends SpecialPage {
 
                // Explode the sub page information into useful bits
                $parts = explode( '/', (string)$par );
+               $extNode = null;
                if ( isset( $parts[1] ) ) {
                        $extName = str_replace( '_', ' ', $parts[1] );
-                       $extNode = null;
                        // Find it!
                        foreach ( $wgExtensionCredits as $group => $extensions ) {
                                foreach ( $extensions as $ext ) {