From 4a3fd85901a9278a303fe3063b3b45dd294c10c3 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 25 Nov 2010 09:38:04 +0000 Subject: [PATCH] Fix for r77231: correct variable name, was throwing fatal errors --- includes/specials/SpecialUnusedimages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ); -- 2.20.1