Last modified: 2012-08-14 11:48:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 6405 - Edit summary does not properly display links to shared-upload images
Edit summary does not properly display links to shared-upload images
Status: RESOLVED DUPLICATE of bug 5506
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-06-22 14:31 UTC by Mormegil
Modified: 2012-08-14 11:48 UTC (History)
1 user (show)

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

A possible solution (1.80 KB, patch)
2006-06-22 14:40 UTC, Mormegil

Description Mormegil 2006-06-22 14:31:56 UTC
When a user writes a link into the edit summary that links to an image (or
media) on Commons, the link comes out red, because Linker::formatComment does
not check for image existence, only for the page existence.

Also, links into NS_MEDIA are checked only against $wgContLang->getNsText(
NS_MEDIA ), not taking into account other synonyms (e.g. the English version).
Comment 1 Mormegil 2006-06-22 14:40:42 UTC
Created attachment 2000 [details]
A possible solution

Reorganized formatComment so that it uses standard methods like
Title::getNamespace and checks for image existence (like in other places)
Comment 2 Brion Vibber 2006-06-22 15:34:49 UTC

*** This bug has been marked as a duplicate of 5506 ***

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