From b9b85843572bf283f48285001e276ba7e61b63f6 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Feb 2009 13:37:51 +0100 Subject: updated to MediaWiki 1.14.0 --- includes/specials/SpecialFileDuplicateSearch.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/specials/SpecialFileDuplicateSearch.php') diff --git a/includes/specials/SpecialFileDuplicateSearch.php b/includes/specials/SpecialFileDuplicateSearch.php index 5236ca25..49a218c8 100644 --- a/includes/specials/SpecialFileDuplicateSearch.php +++ b/includes/specials/SpecialFileDuplicateSearch.php @@ -49,7 +49,7 @@ class FileDuplicateSearchPage extends QueryPage { function formatResult( $skin, $result ) { global $wgContLang, $wgLang; - $nt = Title::makeTitle( NS_IMAGE, $result->title ); + $nt = Title::makeTitle( NS_FILE, $result->title ); $text = $wgContLang->convert( $nt->getText() ); $plink = $skin->makeLink( $nt->getPrefixedText(), $text ); @@ -73,7 +73,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 ); @@ -100,7 +100,7 @@ function wfSpecialFileDuplicateSearch( $par = null ) { # Show a thumbnail of the file $img = wfFindFile( $title ); if ( $img ) { - $thumb = $img->getThumbnail( 120, 120 ); + $thumb = $img->transform( array( 'width' => 120, 'height' => 120 ) ); if( $thumb ) { $wgOut->addHTML( '
' . $thumb->toHtml( array( 'desc-link' => false ) ) . '
' . -- cgit v1.2.3-54-g00ecf