mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-25 16:46:15 +00:00
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:
parent
789ccdeae6
commit
af4fc88a12
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue