Support opening MultimediaViewer when clicking on a thumbnail in a list of media search results

Bug: T134402
Change-Id: I957b65b84d4a650bb9f3a49e7ea3c37f1d16926b
This commit is contained in:
Strainu 2016-11-12 08:39:52 +00:00 committed by Gergő Tisza
parent 789ccdeae6
commit af4fc88a12

View file

@ -211,7 +211,7 @@ class MultimediaViewerHooks {
$pageHasThumbnails = count( $out->getFileSearchOptions() ) > 0;
$pageIsFilePage = $out->getTitle()->inNamespace( NS_FILE );
$fileRelatedSpecialPages = array( 'NewFiles', 'ListFiles', 'MostLinkedFiles',
'MostGloballyLinkedFiles', 'UncategorizedFiles', 'UnusedFiles' );
'MostGloballyLinkedFiles', 'UncategorizedFiles', 'UnusedFiles', 'Search' );
$pageIsFileRelatedSpecialPage = $out->getTitle()->inNamespace( NS_SPECIAL )
&& in_array( $out->getTitle()->getText(), $fileRelatedSpecialPages );