[FIX] Cron compile folder permission issue
This commit is contained in:
parent
9da7af8a5e
commit
d61e6a7243
@ -30,6 +30,10 @@ require_once(INCLUDE_DIR . '/lib/Mobile_Detect.php');
|
||||
if ($detect->isMobile() && $setting->getValue('website_mobile_theme')) {
|
||||
// Set to mobile theme
|
||||
$setting->getValue('website_mobile_theme') ? $theme = $setting->getValue('website_mobile_theme') : $theme = 'mobile';
|
||||
} else if ( PHP_SAPI == 'cli') {
|
||||
// Create a new compile folder just for crons
|
||||
// We call mail templates directly anyway
|
||||
$theme = 'cron';
|
||||
} else {
|
||||
// Use configured theme, fallback to default theme
|
||||
$setting->getValue('website_theme') ? $theme = $setting->getValue('website_theme') : $theme = 'mpos';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user