mirror of
https://github.com/friendica/friendica
synced 2025-04-27 14:30:11 +00:00
Move PConfig::get() to DI::pConfig()->get()
This commit is contained in:
parent
6e2880c679
commit
9e9429b56d
61 changed files with 190 additions and 179 deletions
|
@ -728,7 +728,7 @@ function api_get_user(App $a, $contact_id = null)
|
|||
if ($ret['self']) {
|
||||
$theme_info = DBA::selectFirst('user', ['theme'], ['uid' => $ret['uid']]);
|
||||
if ($theme_info['theme'] === 'frio') {
|
||||
$schema = PConfig::get($ret['uid'], 'frio', 'schema');
|
||||
$schema = DI::pConfig()->get($ret['uid'], 'frio', 'schema');
|
||||
|
||||
if ($schema && ($schema != '---')) {
|
||||
if (file_exists('view/theme/frio/schema/'.$schema.'.php')) {
|
||||
|
@ -736,9 +736,9 @@ function api_get_user(App $a, $contact_id = null)
|
|||
require_once $schemefile;
|
||||
}
|
||||
} else {
|
||||
$nav_bg = PConfig::get($ret['uid'], 'frio', 'nav_bg');
|
||||
$link_color = PConfig::get($ret['uid'], 'frio', 'link_color');
|
||||
$bgcolor = PConfig::get($ret['uid'], 'frio', 'background_color');
|
||||
$nav_bg = DI::pConfig()->get($ret['uid'], 'frio', 'nav_bg');
|
||||
$link_color = DI::pConfig()->get($ret['uid'], 'frio', 'link_color');
|
||||
$bgcolor = DI::pConfig()->get($ret['uid'], 'frio', 'background_color');
|
||||
}
|
||||
if (empty($nav_bg)) {
|
||||
$nav_bg = "#708fa0";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue