[FIX] Properly detect mobile
This commit is contained in:
parent
8e2dd34f9c
commit
939cb805c8
@ -37,7 +37,7 @@ require_once(INCLUDE_DIR . '/lib/swiftmailer/swift_required.php');
|
|||||||
require_once(INCLUDE_DIR . '/lib/Mobile_Detect.php');
|
require_once(INCLUDE_DIR . '/lib/Mobile_Detect.php');
|
||||||
$detect = new Mobile_Detect;
|
$detect = new Mobile_Detect;
|
||||||
|
|
||||||
if (!$detect->isMobile()) {
|
if ($detect->isMobile()) {
|
||||||
$theme = $setting->getValue('website_mobile_theme', 'bootstrap');
|
$theme = $setting->getValue('website_mobile_theme', 'bootstrap');
|
||||||
} else if ( PHP_SAPI == 'cli') {
|
} else if ( PHP_SAPI == 'cli') {
|
||||||
// Create a new compile folder just for crons
|
// Create a new compile folder just for crons
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user