Revert r25819 -- Adding a floated gallery to image description page previews makes...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 13 Sep 2007 18:35:54 +0000 (18:35 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 13 Sep 2007 18:35:54 +0000 (18:35 +0000)
RELEASE-NOTES
includes/EditPage.php

index 0432510..d5dcc37 100644 (file)
@@ -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 ===
 
index e9ae573..e878617 100644 (file)
@@ -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
-                       # <gallery> 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 = "<div class=\"mw-image-edit-preview\" style=\"float:$align\"><gallery>" . 
-                                       $wgTitle->mPrefixedText. "|" . $wgTitle->mPrefixedText .
-                                       "</gallery></div>\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
        }
        
 }
+
+