use config system.server_role and deprecate 'UNO'
This commit is contained in:
8
boot.php
8
boot.php
@@ -602,8 +602,12 @@ function sys_boot() {
|
||||
|
||||
@include('.htconfig.php');
|
||||
|
||||
if(! defined('UNO'))
|
||||
define('UNO', 0);
|
||||
if(defined('UNO')) {
|
||||
if(UNO)
|
||||
App::$config['system']['server_role'] = 'basic';
|
||||
else
|
||||
App::$config['system']['server_role'] = 'pro';
|
||||
}
|
||||
|
||||
if(array_key_exists('default_timezone',get_defined_vars())) {
|
||||
App::$config['system']['timezone'] = $default_timezone;
|
||||
|
||||
Reference in New Issue
Block a user