From af4fc88a125bb55e8315dc2beaeacad50c7a26f4 Mon Sep 17 00:00:00 2001 From: Strainu Date: Sat, 12 Nov 2016 08:39:52 +0000 Subject: [PATCH] Support opening MultimediaViewer when clicking on a thumbnail in a list of media search results Bug: T134402 Change-Id: I957b65b84d4a650bb9f3a49e7ea3c37f1d16926b --- MultimediaViewerHooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MultimediaViewerHooks.php b/MultimediaViewerHooks.php index d27a3c730..e004d64fd 100644 --- a/MultimediaViewerHooks.php +++ b/MultimediaViewerHooks.php @@ -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 );