Fix title detection on file pages

Authored by Tgr on Jun 10 2016, 9:30 AM.

Description

Fix title detection on file pages

Media Viewer tries to detect the file name from the thumbnail name.
That can break for the main image of a file page, which is normally
a preview (ie. a normal thumbnail) but for unhandled types it can
be some asset (such as a PDF icon).

Bug: T137477
Change-Id: Ie6b23d7ef213087971b320460129910f2efd248e

Details

Committed
Mark Holmquist <mholmquist@wikimedia.org>Fri, Apr 21, 1:34 PM
Parents
rEMMVc76c6f45b028: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
References
refs/changes/95/293695/7
ChangeId
Ie6b23d7ef213087971b320460129910f2efd248e
Mark Holmquist <mholmquist@wikimedia.org> committed rEMMV77cbf6d4bee2: Fix title detection on file pages (authored by Tgr).Fri, Apr 21, 1:34 PM