# image
$width = $this->img->getWidth();
$height = $this->img->getHeight();
+ $msg = wfMsg('showbigimage', $width, $height, intval( $this->img->getSize()/1024 ) );
if ( $width > $maxWidth && $wgUseImageResize ) {
- $msg = wfMsg('showbigimage', $width, $height, intval( $this->img->getSize()/1024 ) );
$anchoropen = "<a href=\"{$url}\">";
$anchorclose = "<br>{$msg}</a>";
$url = $this->img->createThumb( $maxWidth );
$height = floor( $height * $maxWidth / $width );
$width = $maxWidth;
- } elseif ( $height > $maxHeight && $wgUseImageResize ) {
- $msg = wfMsg('showbigimage', $width, $height, intval( $this->img->getSize()/1024 ) );
+ }
+ if ( $height > $maxHeight && $wgUseImageResize ) {
$anchoropen = "<a href=\"{$url}\">";
$anchorclose = "<br>{$msg}</a>";
function doDelete()
{
- global $wgOut, $wgUser, $wgLang, $wgRequest;
+ global $wgOut, $wgUser, $wgContLang, $wgRequest;
global $wgUseSquid, $wgInternalServer, $wgDeferredUpdateList;
$fname = 'ImagePage::doDelete';
# Image itself is now gone, and database is cleaned.
# Now we remove the image description page.
- $nt = Title::newFromText( $wgLang->getNsText( Namespace::getImage() ) . ":" . $image );
+ $nt = Title::newFromText( $wgContLang->getNsText( Namespace::getImage() ) . ":" . $image );
$article = new Article( $nt );
$article->doDeleteArticle( $reason ); # ignore errors
$wgOut->setRobotpolicy( 'noindex,nofollow' );
$sk = $wgUser->getSkin();
- $loglink = $sk->makeKnownLink( $wgLang->getNsText(
+ $loglink = $sk->makeKnownLink( $wgContLang->getNsText(
Namespace::getWikipedia() ) .
':' . wfMsg( 'dellogpage' ), wfMsg( 'deletionlog' ) );