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>Thu, Apr 20, 3:09 PM
Parents
rEMMVc76c6f45b028: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
References
refs/changes/95/293695/6
ChangeId
Ie6b23d7ef213087971b320460129910f2efd248e
Mark Holmquist <mholmquist@wikimedia.org> committed rEMMV3430f9ca1a00: Fix title detection on file pages (authored by Tgr).Thu, Apr 20, 3:09 PM