* (bug 6751) Fix preview of blanked section with edit on first preview option
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 21 Jul 2006 07:39:17 +0000 (07:39 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 21 Jul 2006 07:39:17 +0000 (07:39 +0000)
Removed obsolete or broken code which was re-filling the edit box unnecessarily, with the wrong part of the page.

RELEASE-NOTES
includes/EditPage.php

index 1185cf8..10d733d 100644 (file)
@@ -70,6 +70,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Renamed maintainace script redundanttrans.php to unusedMessages.php - clearer usage
 * Fix regression which allowed some blocked users to create additional accounts
 * (bug 6657) Fix Hungarian linktrail
+* (bug 6751) Fix preview of blanked section with edit on first preview option
 
 
 == Languages updated ==
index c795140..e554690 100644 (file)
@@ -1380,11 +1380,6 @@ END
                        wfProfileOut( $fname );
                        return $previewhead;
                } else {
-                       # if user want to see preview when he edit an article
-                       if( $wgUser->getOption('previewonfirst') and ($this->textbox1 == '')) {
-                               $this->textbox1 = $this->getContent();
-                       }
-
                        $toparse = $this->textbox1;
 
                        # If we're adding a comment, we need to show the