1
1
Fork 0

isAjax bugfix

This commit is contained in:
Philipp Holzer 2018-10-13 19:10:46 +02:00
parent 059bd1307f
commit 4f7cb049fb
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -327,7 +327,7 @@ class App
$this->is_mobile = $mobile_detect->isMobile();
$this->is_tablet = $mobile_detect->isTablet();
$this->isAjax = strtolower(defaults($_SERVER, 'HTTP_X_REQUESTED_WITH')) == 'xmlhttprequest';
$this->isAjax = strtolower(defaults($_SERVER, 'HTTP_X_REQUESTED_WITH', '')) == 'xmlhttprequest';
// Register template engines
$this->registerTemplateEngine('Friendica\Render\FriendicaSmartyEngine');