Code standards in api_get_user
This commit is contained in:
parent
35c4a7940a
commit
27646cc4ad
1 changed files with 2 additions and 2 deletions
|
@ -785,10 +785,10 @@ function api_get_user(App $a, $contact_id = null)
|
||||||
$theme_info = dba::select('user', ['theme'], ['uid' => $ret['uid']], ['limit' => 1]);
|
$theme_info = dba::select('user', ['theme'], ['uid' => $ret['uid']], ['limit' => 1]);
|
||||||
if ($theme_info['theme'] === 'frio') {
|
if ($theme_info['theme'] === 'frio') {
|
||||||
$schema = PConfig::get($ret['uid'], 'frio', 'schema');
|
$schema = PConfig::get($ret['uid'], 'frio', 'schema');
|
||||||
if (($schema) && ($schema != '---')) {
|
if ($schema && ($schema != '---')) {
|
||||||
if (file_exists('view/theme/frio/schema/'.$schema.'.php')) {
|
if (file_exists('view/theme/frio/schema/'.$schema.'.php')) {
|
||||||
$schemefile = 'view/theme/frio/schema/'.$schema.'.php';
|
$schemefile = 'view/theme/frio/schema/'.$schema.'.php';
|
||||||
require_once($schemefile);
|
require_once $schemefile;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$nav_bg = PConfig::get($ret['uid'], 'frio', 'nav_bg');
|
$nav_bg = PConfig::get($ret['uid'], 'frio', 'nav_bg');
|
||||||
|
|
Loading…
Reference in a new issue