* Spacing
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 10 Mar 2007 23:14:55 +0000 (23:14 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 10 Mar 2007 23:14:55 +0000 (23:14 +0000)
includes/EditPage.php

index 0b9a476..a57f18a 100644 (file)
@@ -139,14 +139,14 @@ class EditPage {
                                        # Warn the user that something went wrong
                                        $this->editFormPageTop .= $wgOut->parse( wfMsgNoTrans( 'undo-failure' ) );
                                }
-               } else if( $section != '' ) {
-                       if( $section == 'new' ) {
-                               $text = $this->getPreloadedText( $preload );
-                       } else {
+                       } else if( $section != '' ) {
+                               if( $section == 'new' ) {
+                                       $text = $this->getPreloadedText( $preload );
+                               } else {
                                $text = $wgParser->getSection( $text, $section );
+                               }
                        }
                }
-       }
 
                wfProfileOut( __METHOD__ );
                return $text;