From: Brion Vibber Date: Wed, 11 Jun 2008 01:51:12 +0000 (+0000) Subject: Reverting r36139 -- broke wikitext in linkstoimage AGAIN. X-Git-Tag: 1.31.0-rc.0~47053 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=1266ee5ab6f1b7f97d80b96a5c0bfa360bbb683d;p=lhc%2Fweb%2Fwiklou.git Reverting r36139 -- broke wikitext in linkstoimage AGAIN. --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index ec1610fc96..55e63baffe 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -630,7 +630,7 @@ EOT function imageLinks() { global $wgUser, $wgOut; - + $limit = 100; $dbr = wfGetDB( DB_SLAVE ); @@ -643,17 +643,15 @@ EOT array( 'LIMIT' => $limit + 1) ); - $count = $dbr->numRows( $res ); - if ( $count == 0 ) { + if ( 0 == $dbr->numRows( $res ) ) { $wgOut->addHTML( "
\n" ); $wgOut->addWikiMsg( 'nolinkstoimage' ); $wgOut->addHTML( "
\n" ); return; } - $wgOut->addHTML( "
\n" . - wfMsgExt( 'linkstoimage', array( 'parseinline', 'escape' ), min( $count, $limit ) ) . - "