parent
dd38ba04f2
commit
078f4f7a5c
|
@ -413,7 +413,7 @@ class Util
|
||||||
public static function callerIsNative(): bool
|
public static function callerIsNative(): bool
|
||||||
{
|
{
|
||||||
// Should not use IRequest here since this method is called during registration
|
// Should not use IRequest here since this method is called during registration
|
||||||
if (array_key_exists('HTTP_X_REQUESTED_WITH', $_SERVER)) {
|
if (\array_key_exists('HTTP_X_REQUESTED_WITH', $_SERVER)) {
|
||||||
return 'gallery.memories' === $_SERVER['HTTP_X_REQUESTED_WITH'];
|
return 'gallery.memories' === $_SERVER['HTTP_X_REQUESTED_WITH'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue