From 0e04f5d7d5b7327b6b96e911974a1dd266156791 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 21 Jul 2006 07:39:17 +0000 Subject: [PATCH] * (bug 6751) Fix preview of blanked section with edit on first preview option Removed obsolete or broken code which was re-filling the edit box unnecessarily, with the wrong part of the page. --- RELEASE-NOTES | 1 + includes/EditPage.php | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1185cf8489..10d733daf1 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/EditPage.php b/includes/EditPage.php index c795140c5c..e554690b35 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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 -- 2.20.1