From a27f1f84fce50f03a0118f61c1c8a4c5c48a0203 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 22 May 2006 09:28:03 +0000 Subject: [PATCH] Use appropriate HTML functions to create the tool links on image pages, so they don't look garbled when tidy isn't on --- RELEASE-NOTES | 2 ++ includes/ImagePage.php | 31 +++++++++++++++++++------------ languages/Messages.php | 2 +- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 145a101402..f320c38fe9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -309,6 +309,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 6039) Update for Portuguese localisation (pt) * (bug 764) Add CREATE TEMPORARY TABLES to default database permissions * Big update to Swedish localisation (sv) +* Use appropriate HTML functions to create the tool links on image pages, so they don't + look garbled when tidy isn't on == Compatibility == diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 9f1a4807ff..840dc8e807 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -324,24 +324,31 @@ END return $wgServer . $uploadTitle->getLocalUrl( 'wpDestFile=' . urlencode( $this->img->getName() ) ); } - - function uploadLinksBox() - { + /** + * Print out the various links at the bottom of the image page, e.g. reupload, + * external editing (and instructions link) etc. + */ + function uploadLinksBox() { global $wgUser, $wgOut; - if ($this->img->fromSharedDirectory) + if( $this->img->fromSharedDirectory ) return; $sk = $wgUser->getSkin(); - $wgOut->addHTML( '
' ); } function closeShowImage() diff --git a/languages/Messages.php b/languages/Messages.php index 0845a7700c..7342f25b58 100644 --- a/languages/Messages.php +++ b/languages/Messages.php @@ -868,7 +868,7 @@ this old version, (rev) = revert to this old version. 'shareddescriptionfollows' => '-', 'noimage' => 'No file by this name exists, you can $1.', 'noimage-linktext' => 'upload it', -'uploadnewversion' => '[$1 Upload a new version of this file]', +'uploadnewversion' => 'Upload a new version of this file', # Mime search # -- 2.20.1