mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 10:58:50 +03:00
simplify custom include.php
This commit is contained in:
parent
6d958081c4
commit
e434d51157
3 changed files with 32 additions and 27 deletions
|
|
@ -65,13 +65,17 @@ define('APP_PRIVATE_DATA_NAME', $sPrivateDataFolderInternalName ?: '_default_');
|
|||
|
||||
defined('APP_USE_APCU_CACHE') || define('APP_USE_APCU_CACHE', true);
|
||||
|
||||
$sCustomDataPath = function_exists('__get_custom_data_full_path') ? rtrim(trim(__get_custom_data_full_path()), '\\/') : $sCustomDataPath;
|
||||
define('APP_DATA_FOLDER_PATH', strlen($sCustomDataPath) ? $sCustomDataPath.'/' : APP_INDEX_ROOT_PATH.'data/');
|
||||
unset($sCustomDataPath);
|
||||
if (!defined('APP_DATA_FOLDER_PATH')) {
|
||||
$sCustomDataPath = function_exists('__get_custom_data_full_path') ? rtrim(trim(__get_custom_data_full_path()), '\\/') : $sCustomDataPath;
|
||||
define('APP_DATA_FOLDER_PATH', strlen($sCustomDataPath) ? $sCustomDataPath.'/' : APP_INDEX_ROOT_PATH.'data/');
|
||||
unset($sCustomDataPath);
|
||||
}
|
||||
|
||||
define('APP_CONFIGURATION_NAME', function_exists('__get_additional_configuration_name')
|
||||
? trim(__get_additional_configuration_name()) : $sCustomConfiguration);
|
||||
unset($sCustomConfiguration);
|
||||
if (!defined('APP_CONFIGURATION_NAME')) {
|
||||
define('APP_CONFIGURATION_NAME', function_exists('__get_additional_configuration_name')
|
||||
? trim(__get_additional_configuration_name()) : $sCustomConfiguration);
|
||||
unset($sCustomConfiguration);
|
||||
}
|
||||
|
||||
// installation checking data folder
|
||||
$sInstalled = is_file(APP_DATA_FOLDER_PATH.'INSTALLED') ? file_get_contents(APP_DATA_FOLDER_PATH.'INSTALLED') : '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue