]> git.mxchange.org Git - friendica.git/commitdiff
Fix code style
authorfabrixxm <fabrix.xm@gmail.com>
Tue, 6 Nov 2018 15:37:58 +0000 (16:37 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Tue, 6 Nov 2018 15:37:58 +0000 (16:37 +0100)
mod/friendica.php
src/Protocol/PortableContact.php

index 2b77848d00ea44685cd4ad3083737322a8e10597..0e647eb5ea18ae31bc28035d54165f83af7b3eef 100644 (file)
@@ -52,7 +52,7 @@ function friendica_init(App $a)
                        'locked_features'  => $locked_features,
                        'explicit_content' => (int)Config::get('system', 'explicit_content', false),
                        '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,
                        'site_name'        => Config::get('config', 'sitename'),
                        'platform'         => FRIENDICA_PLATFORM,
index e2d902ac5862ff69dfe8e803215ad182d06adeb2..9c22a216319ff3d5095bb3dc2df9e95e58edd22c 100644 (file)
@@ -1378,7 +1378,7 @@ class PortableContact
                                        if (in_array($data['register_policy'], ['REGISTER_CLOSED', 'REGISTER_APPROVE', 'REGISTER_OPEN'])) {
                                                $register_policy = constant($data['register_policy']);
                                        } 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
                                        }
                                        $platform = $data['platform'];