diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
commit | 222b01f5169f1c7e69762e0e8904c24f78f71882 (patch) | |
tree | 8e932e12546bb991357ec48eb1638d1770be7a35 /includes/specials/SpecialFileDuplicateSearch.php | |
parent | 00ab76a6b686e98a914afc1975812d2b1aaa7016 (diff) |
update to MediaWiki 1.16.0
Diffstat (limited to 'includes/specials/SpecialFileDuplicateSearch.php')
-rw-r--r-- | includes/specials/SpecialFileDuplicateSearch.php | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/includes/specials/SpecialFileDuplicateSearch.php b/includes/specials/SpecialFileDuplicateSearch.php index 4fde0a60..0ed7020a 100644 --- a/includes/specials/SpecialFileDuplicateSearch.php +++ b/includes/specials/SpecialFileDuplicateSearch.php @@ -51,9 +51,12 @@ class FileDuplicateSearchPage extends QueryPage { $nt = Title::makeTitle( NS_FILE, $result->title ); $text = $wgContLang->convert( $nt->getText() ); - $plink = $skin->makeLink( $nt->getPrefixedText(), $text ); + $plink = $skin->link( + Title::newFromText( $nt->getPrefixedText() ), + $text + ); - $user = $skin->makeLinkObj( Title::makeTitle( NS_USER, $result->img_user_text ), $result->img_user_text ); + $user = $skin->link( Title::makeTitle( NS_USER, $result->img_user_text ), $result->img_user_text ); $time = $wgLang->timeanddate( $result->img_timestamp ); return "$plink . . $user . . $time"; @@ -73,7 +76,7 @@ function wfSpecialFileDuplicateSearch( $par = null ) { if( $title && $title->getText() != '' ) { $dbr = wfGetDB( DB_SLAVE ); $image = $dbr->tableName( 'image' ); - $encFilename = $dbr->addQuotes( htmlspecialchars( $title->getDBKey() ) ); + $encFilename = $dbr->addQuotes( htmlspecialchars( $title->getDBkey() ) ); $sql = "SELECT img_sha1 from $image where img_name = $encFilename"; $res = $dbr->query( $sql ); $row = $dbr->fetchRow( $res ); @@ -96,7 +99,7 @@ function wfSpecialFileDuplicateSearch( $par = null ) { ); if( $hash != '' ) { - $align = $wgContLang->isRtl() ? 'left' : 'right'; + $align = $wgContLang->alignEnd(); # Show a thumbnail of the file $img = wfFindFile( $title ); @@ -122,14 +125,14 @@ function wfSpecialFileDuplicateSearch( $par = null ) { # Show a short summary if( $count == 1 ) { - $wgOut->addHTML( '<p class="mw-fileduplicatesearch-result-1">' . - wfMsgHtml( 'fileduplicatesearch-result-1', $filename ) . - '</p>' + $wgOut->wrapWikiMsg( + "<p class='mw-fileduplicatesearch-result-1'>\n$1\n</p>", + array( 'fileduplicatesearch-result-1', $filename ) ); } elseif ( $count > 1 ) { - $wgOut->addHTML( '<p class="mw-fileduplicatesearch-result-n">' . - wfMsgExt( 'fileduplicatesearch-result-n', array( 'parseinline' ), $filename, $wgLang->formatNum( $count - 1 ) ) . - '</p>' + $wgOut->wrapWikiMsg( + "<p class='mw-fileduplicatesearch-result-n'>\n$1\n</p>", + array( 'fileduplicatesearch-result-n', $filename, $wgLang->formatNum( $count - 1 ) ) ); } } |