mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 15:37:03 +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'),
|
'title' => array('SnappyMail Webmail', 'Text displayed as page title'),
|
||||||
'loading_description' => array('SnappyMail', 'Text displayed on startup'),
|
'loading_description' => array('SnappyMail', 'Text displayed on startup'),
|
||||||
'favicon_url' => array('', ''),
|
'favicon_url' => array('', ''),
|
||||||
|
'app_path' => array(''),
|
||||||
|
|
||||||
'theme' => array('Default', 'Theme used by default'),
|
'theme' => array('Default', 'Theme used by default'),
|
||||||
'allow_themes' => array(true, 'Allow theme selection on settings screen'),
|
'allow_themes' => array(true, 'Allow theme selection on settings screen'),
|
||||||
|
|
|
||||||
|
|
@ -148,8 +148,8 @@ class Utils
|
||||||
{
|
{
|
||||||
static $sAppPath;
|
static $sAppPath;
|
||||||
if (!$sAppPath) {
|
if (!$sAppPath) {
|
||||||
$sAppPath = \preg_replace('#index\\.php.*$#D', '', $_SERVER['SCRIPT_NAME']);
|
$sAppPath = Api::Config()->Get('webmail', 'app_path', '')
|
||||||
// $sAppPath = Api::Config()->Get('labs', 'app_default_path', '');
|
?: \preg_replace('#index\\.php.*$#D', '', $_SERVER['SCRIPT_NAME']);
|
||||||
}
|
}
|
||||||
return $sAppPath;
|
return $sAppPath;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue