HomePhabricator

Render property names the same way in PHP & JS
64ad5d419634Unpublished

Authored by matthiasmullie on Feb 21 2019, 8:47 AM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Render property names the same way in PHP & JS

I've simplified the config vars as well - now's the perfect time
since we're not deployed yet! Update your LocalSettings.php

$wgMediaInfoProperties = [
	'depicts' => [
		'id' => 'P1',
		'label' => 'wikibasemediainfo-property-value-depicts',
		'url' => '#',
	],
];

turns into:

$wgMediaInfoProperties = [
	'depicts' => 'P1',
];

and

$wgDepictsQualifierProperties = [
	'features' => [
		'id' => 'P1',
		'label' => 'wikibasemediainfo-property-value-features',
		'input' => 'wikibase-entityid',
	],
	...
];

turns into:

$wgDepictsQualifierProperties = [
    'features' => 'P1',
    ...
];

Bug: T215958
Change-Id: Ia626f717ad9480dbb479bb13ec1291d6fbaed29e