From 6950c890bf9469291ec7cbf71558023a7f3cb85c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 2 Jan 2009 19:11:34 +0000 Subject: [PATCH] (bug 5071) Image appears above text when viewing diff of an image page * Hide image/toc on diff view. Previously, img cluttered the top of the diff and you had to scroll down. Also, we have thumbnails for the history (and current) anyway. --- includes/ImagePage.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index aa5295e28b..314d478e11 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -93,10 +93,11 @@ class ImagePage extends Article { $showmeta = false; } - if( $this->displayImg->exists() ) + if( !$diff && $this->displayImg->exists() ) $wgOut->addHTML( $this->showTOC($showmeta) ); - $this->openShowImage(); + if( !$diff ) + $this->openShowImage(); # No need to display noarticletext, we use our own message, output in openShowImage() if( $this->getID() ) { -- 2.20.1