Changes for #379

This commit is contained in:
the-djmaze 2022-05-11 21:13:29 +02:00
parent 304c55f038
commit e4bc027aef
2 changed files with 3 additions and 2 deletions

View file

@ -128,6 +128,7 @@ class Application extends \RainLoop\Config\AbstractConfig
'title' => array('SnappyMail Webmail', 'Text displayed as page title'),
'loading_description' => array('SnappyMail', 'Text displayed on startup'),
'favicon_url' => array('', ''),
'app_path' => array(''),
'theme' => array('Default', 'Theme used by default'),
'allow_themes' => array(true, 'Allow theme selection on settings screen'),

View file

@ -148,8 +148,8 @@ class Utils
{
static $sAppPath;
if (!$sAppPath) {
$sAppPath = \preg_replace('#index\\.php.*$#D', '', $_SERVER['SCRIPT_NAME']);
// $sAppPath = Api::Config()->Get('labs', 'app_default_path', '');
$sAppPath = Api::Config()->Get('webmail', 'app_path', '')
?: \preg_replace('#index\\.php.*$#D', '', $_SERVER['SCRIPT_NAME']);
}
return $sAppPath;
}