diff --git a/include/autoloader.inc.php b/include/autoloader.inc.php index f67eeb75..8f0e6e6e 100644 --- a/include/autoloader.inc.php +++ b/include/autoloader.inc.php @@ -37,7 +37,7 @@ require_once(INCLUDE_DIR . '/lib/swiftmailer/swift_required.php'); require_once(INCLUDE_DIR . '/lib/Mobile_Detect.php'); $detect = new Mobile_Detect; -if (!$detect->isMobile()) { +if ($detect->isMobile()) { $theme = $setting->getValue('website_mobile_theme', 'bootstrap'); } else if ( PHP_SAPI == 'cli') { // Create a new compile folder just for crons