From 26c2b5264d78ce836369d26167eb98f1e48d8e4c Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 27 Sep 2008 11:04:23 +0000 Subject: [PATCH] API: Add the name attribute back to list=allimages; it disappeared in r35085 --- includes/api/ApiQueryAllimages.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQueryAllimages.php b/includes/api/ApiQueryAllimages.php index 2754c25862..8b513f34a6 100644 --- a/includes/api/ApiQueryAllimages.php +++ b/includes/api/ApiQueryAllimages.php @@ -109,10 +109,10 @@ class ApiQueryAllimages extends ApiQueryGeneratorBase { if (is_null($resultPageSet)) { $file = $repo->newFileFromRow( $row ); - - $data[] = ApiQueryImageInfo::getInfo( $file, $prop, $result ); + $data[] = array_merge(array('name' => $row->img_name), + ApiQueryImageInfo::getInfo($file, $prop, $result)); } else { - $data[] = Title::makeTitle( NS_IMAGE, $row->img_name ); + $data[] = Title::makeTitle(NS_IMAGE, $row->img_name); } } $db->freeResult($res); -- 2.20.1