Fix undefined index in mod/settings
This commit is contained in:
parent
3001951075
commit
796eb1c874
1 changed files with 2 additions and 4 deletions
|
@ -26,14 +26,12 @@ use Friendica\Util\Temporal;
|
||||||
function get_theme_config_file($theme)
|
function get_theme_config_file($theme)
|
||||||
{
|
{
|
||||||
$a = get_app();
|
$a = get_app();
|
||||||
if (!empty($a->theme_info['extends'])) {
|
$base_theme = defaults($a->theme_info, 'extends');
|
||||||
$base_theme = $a->theme_info['extends'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (file_exists("view/theme/$theme/config.php")) {
|
if (file_exists("view/theme/$theme/config.php")) {
|
||||||
return "view/theme/$theme/config.php";
|
return "view/theme/$theme/config.php";
|
||||||
}
|
}
|
||||||
if (!empty($base_theme) && file_exists("view/theme/$base_theme/config.php")) {
|
if ($base_theme && file_exists("view/theme/$base_theme/config.php")) {
|
||||||
return "view/theme/$base_theme/config.php";
|
return "view/theme/$base_theme/config.php";
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue