Last modified: 2012-08-14 11:48:35 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 T8405, the corresponding Phabricator task for complete and up-to-date bug report information.
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.