From ab4e6fdd516ee51ee20235cdedd67a777cc5d018 Mon Sep 17 00:00:00 2001 From: Reedy Date: Mon, 18 Sep 2017 01:58:18 +0100 Subject: [PATCH] Return description fields for unprefixed image cache rows Bug: T175444 Change-Id: I5560187d3850253095b695dc7a3cfc954fba9318 --- includes/filerepo/file/LocalFile.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 96e7a7e7f9..4c0dea246e 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -351,9 +351,8 @@ class LocalFile extends File { static $results = []; if ( $prefix == '' ) { - return $fields; + return array_merge( $fields, [ 'description' ] ); } - if ( !isset( $results[$prefix] ) ) { $prefixedFields = []; foreach ( $fields as $field ) { -- 2.20.1