From 97b3057c9162a82b6958c2fa064fbc3eeac144f7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 23 Sep 2014 11:27:12 -0700 Subject: [PATCH] Use a less confusing column alias in findMissingFiles.php Change-Id: I9c0a948e6a0dc2ed604fb8c2828fc6e5a94fec9f --- maintenance/findMissingFiles.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maintenance/findMissingFiles.php b/maintenance/findMissingFiles.php index 5f9f643a44..67864c54e3 100644 --- a/maintenance/findMissingFiles.php +++ b/maintenance/findMissingFiles.php @@ -59,7 +59,7 @@ class FindMissingFiles extends Maintenance { do { $res = $dbr->select( array_merge( array( 'page' ), $joinTables ), - array( 'img_name' => 'DISTINCT(page_title)' ), + array( 'name' => 'DISTINCT(page_title)' ), array( 'page_namespace' => NS_FILE, "page_title >= " . $dbr->addQuotes( $lastName ) ), __METHOD__, @@ -70,9 +70,9 @@ class FindMissingFiles extends Maintenance { // Check if any of these files are missing... $pathsByName = array(); foreach ( $res as $row ) { - $file = $repo->newFile( $row->img_name ); - $pathsByName[$row->img_name] = $file->getPath(); - $lastName = $row->img_name; + $file = $repo->newFile( $row->name ); + $pathsByName[$row->name] = $file->getPath(); + $lastName = $row->name; } $be->preloadFileStat( array( 'srcs' => $pathsByName ) ); foreach ( $pathsByName as $path ) { -- 2.20.1