Fix for 'shareddescriptionfollows' message in some non-standard languages (noticed...
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 18 Mar 2007 03:44:32 +0000 (03:44 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 18 Mar 2007 03:44:32 +0000 (03:44 +0000)
includes/ImagePage.php

index 3ddf192..5b12ed9 100644 (file)
@@ -64,7 +64,7 @@ class ImagePage extends Article {
                # Show shared description, if needed
                if ( $this->mExtraDescription ) {
                        $fol = wfMsg( 'shareddescriptionfollows' );
-                       if( $fol != '-' ) {
+                       if( $fol != '-' && !wfEmptyMsg( 'shareddescriptionfollows', $fol ) ) {
                                $wgOut->addWikiText( $fol );
                        }
                        $wgOut->addHTML( '<div id="shared-image-desc">' . $this->mExtraDescription . '</div>' );