From b506512bda20986a36b4d8f60de5a13aff0bf20e Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sun, 5 Feb 2006 18:32:55 +0000 Subject: [PATCH] (bug 4875) Define a div containing the shared image description --- RELEASE-NOTES | 2 +- includes/ImagePage.php | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 78a04338b3..c8add109d7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -597,7 +597,7 @@ fully support the editing toolbar, but was found to be too confusing. showing a bogus current timestamp * Reset $wgActionPaths during parser test; corrects some false failures in the automated test report. - +* (bug 4875) Define a div containing the shared image description === Caveats === diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 9d06e38a78..24b0e48ca3 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -60,11 +60,13 @@ class ImagePage extends Article { $this->viewUpdates(); } - if ($this->mExtraDescription) { - $fol = wfMsg('shareddescriptionfollows'); - if ($fol != '-') - $wgOut->addWikiText(wfMsg('shareddescriptionfollows')); - $wgOut->addHTML($this->mExtraDescription); + # Show shared description, if needed + if( $this->mExtraDescription ) { + $fol = wfMsg( 'shareddescriptionfollows' ); + if( $fol != '-' ) { + $wgOut->addWikiText( $fol ); + } + $wgOut->addHTML( '
' . $this->mExtraDescription . '
' ); } $this->closeShowImage(); -- 2.20.1