From: Alexandre Emsenhuber Date: Thu, 25 Nov 2010 09:38:04 +0000 (+0000) Subject: Fix for r77231: correct variable name, was throwing fatal errors X-Git-Tag: 1.31.0-rc.0~33738 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=4a3fd85901a9278a303fe3063b3b45dd294c10c3;p=lhc%2Fweb%2Fwiklou.git Fix for r77231: correct variable name, was throwing fatal errors --- diff --git a/includes/specials/SpecialUnusedimages.php b/includes/specials/SpecialUnusedimages.php index 0bc1e1fdfc..091ec3a3df 100644 --- a/includes/specials/SpecialUnusedimages.php +++ b/includes/specials/SpecialUnusedimages.php @@ -44,7 +44,7 @@ class UnusedimagesPage extends ImageQueryPage { $dbr = wfGetDB( DB_SLAVE ); - $epoch = $db->unixTimestamp( 'rev_timestamp' ); + $epoch = $dbr->unixTimestamp( 'img_timestamp' ); if ( $wgCountCategorizedImagesAsUsed ) { list( $page, $image, $imagelinks, $categorylinks ) = $dbr->tableNamesN( 'page', 'image', 'imagelinks', 'categorylinks' );