Issue-#3873
Replace deprecated functions with new syntax.
This commit is contained in:
parent
9eb1f4b9c3
commit
0dfa57948f
124 changed files with 819 additions and 679 deletions
|
@ -37,14 +37,14 @@
|
|||
if (is_null($uid)) {
|
||||
$uid = get_theme_uid();
|
||||
}
|
||||
$schema = get_pconfig($uid, 'frio', 'schema');
|
||||
$schema = Friendica\Core\PConfig::get($uid, 'frio', 'schema');
|
||||
if (($schema) && ($schema != '---')) {
|
||||
if (file_exists('view/theme/frio/schema/'.$schema.'.php')) {
|
||||
$schemefile = 'view/theme/frio/schema/'.$schema.'.php';
|
||||
require_once($schemefile);
|
||||
}
|
||||
} else {
|
||||
$nav_bg = get_pconfig($uid, 'frio', 'nav_bg');
|
||||
$nav_bg = Friendica\Core\PConfig::get($uid, 'frio', 'nav_bg');
|
||||
}
|
||||
if (!$nav_bg) {
|
||||
$nav_bg = "#708fa0";
|
||||
|
@ -66,8 +66,8 @@ else
|
|||
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
|
||||
<?php
|
||||
if(x($page,'nav') && (!$minimal)){
|
||||
echo str_replace("~config.sitename~",get_config('config','sitename'),
|
||||
str_replace("~system.banner~",get_config('system','banner'),
|
||||
echo str_replace("~config.sitename~",Friendica\Core\Config::get('config','sitename'),
|
||||
str_replace("~system.banner~",Friendica\Core\Config::get('system','banner'),
|
||||
$page['nav']
|
||||
));};
|
||||
|
||||
|
|
|
@ -18,11 +18,14 @@
|
|||
* 'version' => Schema version
|
||||
* 'overwrites' => Variables which overwriting custom settings
|
||||
*/
|
||||
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function get_schema_info($schema){
|
||||
|
||||
$theme = current_theme();
|
||||
$themepath = "view/theme/" . $theme . "/";
|
||||
$schema = get_pconfig(local_user(),'frio', 'schema');
|
||||
$schema = PConfig::get(local_user(),'frio', 'schema');
|
||||
|
||||
$info=Array(
|
||||
'name' => $schema,
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
|
||||
<?php
|
||||
if(x($page,'nav')) {
|
||||
echo str_replace("~config.sitename~",get_config('config','sitename'),
|
||||
str_replace("~system.banner~",get_config('system','banner'),
|
||||
echo str_replace("~config.sitename~",Friendica\Core\Config::get('config','sitename'),
|
||||
str_replace("~system.banner~",Friendica\Core\Config::get('system','banner'),
|
||||
$page['nav']
|
||||
));};
|
||||
?>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\System;
|
||||
|
||||
$frio = "view/theme/frio";
|
||||
|
@ -23,7 +25,7 @@ function frio_init(App $a) {
|
|||
|
||||
$baseurl = System::baseUrl();
|
||||
|
||||
$style = get_pconfig(local_user(), 'frio', 'style');
|
||||
$style = PConfig::get(local_user(), 'frio', 'style');
|
||||
|
||||
$frio = "view/theme/frio";
|
||||
|
||||
|
@ -40,7 +42,7 @@ EOT;
|
|||
}
|
||||
|
||||
if ($style == "")
|
||||
$style = get_config('frio', 'style');
|
||||
$style = Config::get('frio', 'style');
|
||||
}
|
||||
|
||||
function frio_install() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue