(bug 4875) Define a div containing the shared image description
authorRob Church <robchurch@users.mediawiki.org>
Sun, 5 Feb 2006 18:32:55 +0000 (18:32 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 5 Feb 2006 18:32:55 +0000 (18:32 +0000)
RELEASE-NOTES
includes/ImagePage.php

index 78a0433..c8add10 100644 (file)
@@ -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 ===
 
index 9d06e38..24b0e48 100644 (file)
@@ -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( '<div id="shared-image-desc">' . $this->mExtraDescription . '</div>' );
                        }
 
                        $this->closeShowImage();