From f4288f99b0683f6c3808bcc69947257d77224bfd Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 13 Sep 2007 18:35:54 +0000 Subject: [PATCH] Revert r25819 -- Adding a floated gallery to image description page previews makes the behavior even *less* like the actual page display than it already is. --- RELEASE-NOTES | 1 - includes/EditPage.php | 15 +++------------ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 04325101c9..d5dcc37be6 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -22,7 +22,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN === New features in 1.12 === * Add a warning for non-descriptive filenames at Special:Upload -* (bug 11243) Show thumbnail on image description page previews === Bug fixes in 1.12 === diff --git a/includes/EditPage.php b/includes/EditPage.php index e9ae57315d..e878617968 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1424,18 +1424,7 @@ END wfProfileOut( $fname ); return $previewhead; } else { - # If an image description page is edited, show a thumbnail at time of edit preview - # format used as it handles all non image files (.ogg, .pdf, ...) very nice. - if ( $wgTitle->mNamespace == NS_IMAGE ) { - global $wgContLang; - $align = $wgContLang->isRtl() ? 'left' : 'right'; - $imageLink = "
" . - $wgTitle->mPrefixedText. "|" . $wgTitle->mPrefixedText . - "
\n"; - $toparse = $imageLink . $this->textbox1; - } else { - $toparse = $this->textbox1; - } + $toparse = $this->textbox1; # If we're adding a comment, we need to show the # summary as the headline @@ -2097,3 +2086,5 @@ END } } + + -- 2.20.1