Last modified: 2011-03-13 18:05:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10640, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8640 - ImageMap extension icon assumes a standard location
ImageMap extension icon assumes a standard location
Product: MediaWiki extensions
Classification: Unclassified
ImageMap (Other open bugs)
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-01-15 06:04 UTC by Rob Church
Modified: 2011-03-13 18:05 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Rob Church 2007-01-15 06:04:40 UTC
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.
Comment 1 Michael Daly 2007-05-02 21:12:15 UTC
$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.
Comment 2 Michael Daly 2007-05-02 22:36:12 UTC
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());
Comment 3 Raimond Spekking 2007-05-03 05:43:10 UTC
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.
Comment 4 Brion Vibber 2007-05-03 15:25:58 UTC
ln -s ../shared/extensions .

Note You need to log in before you can comment on or make changes to this bug.