Page MenuHomePhabricator

Special:Version - 'tools' added to start of extension name.
Closed, InvalidPublic

Description

I am experiencing this problem on 1.5.6. This may be fixed in more recent
versions, but currently I have no way of testing.

Here is an example array containing the details about a custom extension:

$wgExtensionCredits['other'][] = array(

>Database tools
		'author' => 'Author',
		'url' => 'http://www.extensionaddress.co.uk/wiki/DB tools'

);

When viewing Special:Version, the name of the extension is listed as "''tools''
Database tools" instead of just "Database tools".

If you change the URL to read 'http://www.extensionaddress.co.uk/wiki/DB' then
this problem does not exist.

For some inexplicable reason, if the URL ends in 'tools' then MediaWiki decides
to add the word 'tools' to the beginning of the extension name.

Expected behaviour: The extension name is the name defined in the array!


Version: 1.5.x
Severity: normal

Details

Reference
bz6352

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:19 PM
bzimport set Reference to bz6352.
bzimport added a subscriber: Unknown Object (MLST).

ezyang wrote:

Bug is invalid: you're passing a bad URL. Try:

$wgExtensionCredits['other'][] = array(
'name' => 'Database tools',
'author' => 'Author',
'url' => 'http://www.extensionaddress.co.uk/wiki/DB%20tools'
);

OK - That works.

The reason this is a problem is that the URL is created by building it as wiki
text, so my original example becomes

[http://www.extensionaddress.co.uk/wiki/DB tools Database tools]