From 2e1916f96d0884b9cd9be9d546d14597362c2d44 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 16 Jun 2015 19:33:59 -0700 Subject: [PATCH] ResourceLoaderImageModule: Fix incorrect documentation The docs claimed that you had to do something like 'images' => array( 'filename.svg' => array( 'name' => 'foo' ) ) but what you actually need to do is 'images' => array( 'foo' => array( 'file' => 'filename.svg' ) ) Change-Id: Idca2d5c58e4d9fcf008ef5cfe7f8ce77b996c203 --- includes/resourceloader/ResourceLoaderImageModule.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/resourceloader/ResourceLoaderImageModule.php b/includes/resourceloader/ResourceLoaderImageModule.php index 2caca8741e..ccdb88f52d 100644 --- a/includes/resourceloader/ResourceLoaderImageModule.php +++ b/includes/resourceloader/ResourceLoaderImageModule.php @@ -86,9 +86,11 @@ class ResourceLoaderImageModule extends ResourceLoaderModule { * // List of image files and their options * 'images' => array( * [theme name] => array( - * [file path string], - * [file path string] => array( - * 'name' => [image name string, defaults to file name], + * [icon name] => array( + * 'file' => [file path string or array whose values are file path strings + * and whose keys are 'default', 'ltr', 'rtl', a single + * language code like 'en', or a list of language codes like + * 'en,de,ar'], * 'variants' => [array of variant name strings, variants * available for this image], * ), -- 2.20.1