Fix code style
This commit is contained in:
parent
1858204cbd
commit
0441a169a9
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ function friendica_init(App $a)
|
||||||
'locked_features' => $locked_features,
|
'locked_features' => $locked_features,
|
||||||
'explicit_content' => (int)Config::get('system', 'explicit_content', false),
|
'explicit_content' => (int)Config::get('system', 'explicit_content', false),
|
||||||
'language' => Config::get('system','language'),
|
'language' => Config::get('system','language'),
|
||||||
'register_policy' => $register_policy[intval(Config::get('config', 'register_policy'))],
|
'register_policy' => $register_policy[intval(Config::get('config', 'register_policy'))],
|
||||||
'admin' => $admin,
|
'admin' => $admin,
|
||||||
'site_name' => Config::get('config', 'sitename'),
|
'site_name' => Config::get('config', 'sitename'),
|
||||||
'platform' => FRIENDICA_PLATFORM,
|
'platform' => FRIENDICA_PLATFORM,
|
||||||
|
|
|
@ -1378,7 +1378,7 @@ class PortableContact
|
||||||
if (in_array($data['register_policy'], ['REGISTER_CLOSED', 'REGISTER_APPROVE', 'REGISTER_OPEN'])) {
|
if (in_array($data['register_policy'], ['REGISTER_CLOSED', 'REGISTER_APPROVE', 'REGISTER_OPEN'])) {
|
||||||
$register_policy = constant($data['register_policy']);
|
$register_policy = constant($data['register_policy']);
|
||||||
} else {
|
} else {
|
||||||
Logger::log("Register policy '".$data['register_policy']."' from $server_url is invalid.");
|
Logger::log("Register policy '{$data['register_policy']}' from $server_url is invalid.");
|
||||||
$register_policy = REGISTER_CLOSED; // set a default value
|
$register_policy = REGISTER_CLOSED; // set a default value
|
||||||
}
|
}
|
||||||
$platform = $data['platform'];
|
$platform = $data['platform'];
|
||||||
|
|
Loading…
Reference in a new issue