Page MenuHomePhabricator

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

Description

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
URL: http://cs.wikipedia.org/w/index.php?title=Wikipedie:P%C3%ADskovi%C5%A1t%C4%9B&dir=prev&offset=20060622140000&limit=1&action=history

Details

Reference
bz6405

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)

Attached:

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