mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 11:09:20 +03:00
Changes for #379
This commit is contained in:
parent
304c55f038
commit
e4bc027aef
2 changed files with 3 additions and 2 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue