Page MenuHomePhabricator

ImageMap extension icon assumes a standard location
Closed, DeclinedPublic

Description

Author: robchur

Description:
The little blue "information" icon for the ImageMap extension is loaded with a
path that assumes the extension is installed in mediawiki/extensions/ImageMap.
This doesn't work if the extension is being loaded from another location.


Version: unspecified
Severity: normal

Details

Reference
bz8640

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:30 PM
bzimport added a project: ImageMap.
bzimport set Reference to bz8640.
bzimport added a subscriber: Unknown Object (MLST).

michaeldaly wrote:

$descImg->setAttribute( 'src', "$wgScriptPath/extensions/ImageMap/desc-20.png" );

This is a particular problem is you set up one extension directory structure in
a "pool" wiki and share extensions across several wikis in a Wiki Family.

Perhaps the icon should be uploaded to the wiki's image/file repository and the
image defined equivalent to [[Image:desc-20.png]]. Then standard image
functions can be used to generate the path and filename.

michaeldaly wrote:

This seems to work for an icon that's in the wiki's image directories:

$descImgImage = Image::newFromName( 'desc-20.png' );
$descImg->setAttribute( 'src', $descImgImage->getURL());

The upload to the wikis image repository did not solve this bug, to be backwards
compatible we need still a fix.

For a propoposal to allow user-defined images see bug 9772.

Gilles raised the priority of this task from Lowest to Unbreak Now!.Dec 4 2014, 10:12 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Lowest.Dec 4 2014, 11:22 AM