summaryrefslogtreecommitdiff
path: root/modules_v3/media
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-02-16 22:59:03 +0000
committerGreg Roach <fisharebest@gmail.com>2015-02-16 22:59:03 +0000
commit9f712a0dfcd43b3cb2a2c4ed815a4941048e9560 (patch)
treead23e09f04d119c494192910c929f2539a79ce5b /modules_v3/media
parentcccff39494522f07739c22c91af9f52cfe94afed (diff)
downloadwebtrees-9f712a0dfcd43b3cb2a2c4ed815a4941048e9560.tar.gz
webtrees-9f712a0dfcd43b3cb2a2c4ed815a4941048e9560.tar.bz2
webtrees-9f712a0dfcd43b3cb2a2c4ed815a4941048e9560.zip
class Auth should be responsible for checking search engines
Diffstat (limited to 'modules_v3/media')
-rw-r--r--modules_v3/media/module.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules_v3/media/module.php b/modules_v3/media/module.php
index b919aa45a7..006609e571 100644
--- a/modules_v3/media/module.php
+++ b/modules_v3/media/module.php
@@ -122,9 +122,7 @@ class media_WT_Module extends Module implements ModuleTabInterface {
/** {@inheritdoc} */
public function canLoadAjax() {
- global $SEARCH_SPIDER;
-
- return !$SEARCH_SPIDER; // Search engines cannot use AJAX
+ return !Auth::isSearchEngine(); // Search engines cannot use AJAX
}
/** {@inheritdoc} */