Add backward-compatibility for config variables after schema rename
This commit is contained in:
parent
86e4690b5f
commit
7feeb0af78
4 changed files with 6 additions and 6 deletions
|
@ -43,7 +43,7 @@ if (!isset($minimal)) {
|
|||
if (is_null($uid)) {
|
||||
$uid = Profile::getThemeUid();
|
||||
}
|
||||
$scheme = PConfig::get($uid, 'frio', 'scheme');
|
||||
$scheme = PConfig::get($uid, 'frio', 'scheme', PConfig::get($uid, 'frio', 'schema'));
|
||||
if (($scheme) && ($scheme != '---')) {
|
||||
if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) {
|
||||
$schemefile = 'view/theme/frio/scheme/' . $scheme . '.php';
|
||||
|
|
|
@ -23,7 +23,7 @@ function get_scheme_info($scheme)
|
|||
{
|
||||
$theme = current_theme();
|
||||
$themepath = 'view/theme/' . $theme . '/';
|
||||
$scheme = PConfig::get(local_user(), 'frio', 'scheme');
|
||||
$scheme = PConfig::get(local_user(), 'frio', 'scheme', PConfig::get(local_user(), 'frio', 'scheme'));
|
||||
|
||||
$info = [
|
||||
'name' => $scheme,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue