Page MenuHomePhabricator

Edit summary does not properly display links to shared-upload images
Closed, ResolvedPublic


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).

Version: unspecified
Severity: minor



Event Timeline

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

Created attachment 2000
A possible solution

Reorganized formatComment so that it uses standard methods like
Title::getNamespace and checks for image existence (like in other places)


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