// Small fix on mobile theme

This commit is contained in:
lLefevre
2012-09-10 08:18:17 +00:00
parent c8ddaaeea3
commit 1acb42b004
2 changed files with 4 additions and 2 deletions

View File

@@ -795,7 +795,7 @@ class FrontControllerCore extends Controller
'conditions' => Configuration::get('PS_CONDITIONS'),
'id_cgv' => Configuration::get('PS_CONDITIONS_CMS_ID'),
'PS_SHOP_NAME' => Configuration::get('PS_SHOP_NAME'),
'PS_ALLOW_MOBILE_DEVICE' => file_exists(_PS_THEME_MOBILE_DIR_) && (bool)Configuration::get('PS_ALLOW_MOBILE_DEVICE')
'PS_ALLOW_MOBILE_DEVICE' => isset($_SERVER['HTTP_USER_AGENT']) && (bool)Configuration::get('PS_ALLOW_MOBILE_DEVICE') && @filemtime(_PS_THEME_MOBILE_DIR_)
));
}