From b13fc73642662da98115834508171b5c76696336 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 16 Feb 2009 08:51:38 +0000 Subject: [PATCH] Cleanup image description page a bit: * Remove the link to Special:FileDuplicateSearch from the "file history" section of image description pages as the list of duplicated files is shown in the next section anyway. * Add the link to Special:FileDuplicateSearch to the message 'duplicatesoffile' --- RELEASE-NOTES | 3 +++ includes/ImagePage.php | 6 +----- languages/messages/MessagesEn.php | 3 +-- maintenance/language/messages.inc | 1 - 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index eac9d97742..5bb7bd5923 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -103,6 +103,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Wrap warning message 'editinginterface' into a div with class 'mw-editinginterface' * (bug 17497) Oasis opendocument added to mime.types +* Remove the link to Special:FileDuplicateSearch from the "file history" section + of image description pages as the list of duplicated files is shown in the + next section anyway. === Bug fixes in 1.15 === * (bug 16968) Special:Upload no longer throws useless warnings. diff --git a/includes/ImagePage.php b/includes/ImagePage.php index fb4fe248fc..1dc6fd6749 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -577,10 +577,6 @@ EOT $wgOut->addHTML( "
  • " ); } - # Link to Special:FileDuplicateSearch - $dupeLink = $sk->makeKnownLinkObj( SpecialPage::getTitleFor( 'FileDuplicateSearch', $this->mTitle->getDBkey() ), wfMsgHtml( 'imagepage-searchdupe' ) ); - $wgOut->addHTML( "
  • {$dupeLink}
  • " ); - # External editing link $elink = $sk->makeKnownLinkObj( $this->mTitle, wfMsgHtml( 'edit-externally' ), 'action=edit&externaledit=true&mode=file' ); $wgOut->addHTML( '
  • ' . $elink . ' ' . wfMsgExt( 'edit-externally-help', array( 'parseinline' ) ) . '
  • ' ); @@ -694,7 +690,7 @@ EOT $wgOut->addHTML( "
    \n" ); $wgOut->addWikiMsg( 'duplicatesoffile', - $wgLang->formatNum( count( $dupes ) ) + $wgLang->formatNum( count( $dupes ) ), $this->mTitle->getDBkey() ); $wgOut->addHTML( "