Collapse nested if statements
authorReedy <reedy@wikimedia.org>
Tue, 22 Jul 2014 19:19:41 +0000 (20:19 +0100)
committerReedy <reedy@wikimedia.org>
Mon, 28 Jul 2014 14:55:13 +0000 (14:55 +0000)
Change-Id: I1cecfe5884edb98c8ad0a441f4d82288d597f631

includes/OutputPage.php

index 6bea931..9685747 100644 (file)
@@ -1291,10 +1291,8 @@ class OutputPage extends ContextSource {
                                        continue;
                                }
                                $wgContLang->findVariantLink( $category, $title, true );
-                               if ( $category != $origcategory ) {
-                                       if ( array_key_exists( $category, $categories ) ) {
-                                               continue;
-                                       }
+                               if ( $category != $origcategory && array_key_exists( $category, $categories ) ) {
+                                       continue;
                                }
                                $text = $wgContLang->convertHtml( $title->getText() );
                                $this->mCategories[] = $title->getText();