Page MenuHomePhabricator

$wgLogos DefaultSettings.php documentation mismatch
Closed, ResolvedPublic

Description

https://www.mediawiki.org/wiki/Manual:$wgLogos has an example of

$wgLogos = [
	'1x' => "path/to/1x_version.png",
	'1.5x' => "path/to/1.5x_version.png",
	'2x' => "path/to/2x_version.png",
	'svg' => "path/to/svg_version.svg",
	'icon' => "path/to/icon.png",  // A version of the logo without wordmark and tagline
	'wordmark' => [
		'src' => "path/to/wordmark_version.png",
		'1x' => "path/to/wordmark_version.svg", // optional if you want to support browsers with SVG support with an SVG logo.
		'width' => 135,
		'height' => 20,
	],
	'tagline' => [
		'src' => "path/to/tagline_version.png",
		'width' => 135,
		'height' => 15,
	],
];

DefaultSettings has:

/**
 * The URL path to various wiki logos.
 * The `1x` logo size should be 135x135 pixels.
 * The `1.5x` 1.5x version of square logo
 * The `2x` 2x version of square logo
 * The `svg` version of square logo
 * The `wordmark` key should point to an array with the following fields
 *  - `src` relative or absolute path to a landscape logo
 *  - `width` defining the width of the logo in pixels.
 *  - `height` defining the height of the logo in pixels.
 * All values can be either an absolute or relative URI
 * Configuration is optional provided $wgLogo is used instead.
 * Defaults to [ "1x" => $wgLogo ],
 *   or [ "1x" => "$wgResourceBasePath/resources/assets/wiki.png" ] if $wgLogo is not set.
 * @since 1.35
 * @var array|false
 */
$wgLogos = false;

No mention of icon, tagline...