isset-error
isset reset
This commit is contained in:
parent
6122ec4612
commit
c40e93482b
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,9 @@ class ThemeCajon_Settings{
|
|||
$layout = isset($page->TitleInfo['gpLayout']) ? $page->TitleInfo['gpLayout'] : 'default';
|
||||
$layout = isset($page->gpLayout) ? $page->gpLayout : $layout;
|
||||
$default_layout = $config['gpLayout'];
|
||||
$current_theme_name = $layout == 'default' ? isset($gpLayouts[$default_layout]['name']) : isset($gpLayouts[$layout]['name']);
|
||||
$gplayoutsvar1 = $gpLayouts[$default_layout]['name'];
|
||||
$gplayoutsvar2 = $gpLayouts[$layout]['name'];
|
||||
$current_theme_name = $layout == 'default' ? $gplayoutsvar1 : $gplayoutsvar2;
|
||||
$is_current_theme = ($current_theme_name == $theme_name);
|
||||
return $is_current_theme;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue