aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Settings/Display.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-10-26 21:56:32 +0000
committerMario <mario@mariovavti.com>2022-10-26 21:56:32 +0000
commit95f6f9e10aca66c30a1ef7ac6ed24fd6e352007d (patch)
tree582116e7571ae7eaa4a51578b2f5ebeae31f75a9 /Zotlabs/Module/Settings/Display.php
parentef2448e17e742e7dcef458993bce1e0a29756aa7 (diff)
parent9554f535199b5fb3a23dd40f9921a15339da3bd7 (diff)
downloadvolse-hubzilla-95f6f9e10aca66c30a1ef7ac6ed24fd6e352007d.tar.gz
volse-hubzilla-95f6f9e10aca66c30a1ef7ac6ed24fd6e352007d.tar.bz2
volse-hubzilla-95f6f9e10aca66c30a1ef7ac6ed24fd6e352007d.zip
Merge branch 'dev'
Diffstat (limited to 'Zotlabs/Module/Settings/Display.php')
-rw-r--r--Zotlabs/Module/Settings/Display.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Module/Settings/Display.php b/Zotlabs/Module/Settings/Display.php
index 11181907b..ea9ae2da1 100644
--- a/Zotlabs/Module/Settings/Display.php
+++ b/Zotlabs/Module/Settings/Display.php
@@ -90,8 +90,8 @@ class Display {
$default_theme = 'redbasic';
$themespec = explode(':', \App::$channel['channel_theme']);
- $existing_theme = $themespec[0];
- $existing_schema = $themespec[1];
+ $existing_theme = $themespec[0] ?? '';
+ $existing_schema = $themespec[1] ?? '';
$theme = (($existing_theme) ? $existing_theme : $default_theme);
@@ -207,12 +207,12 @@ class Display {
function get_theme_config_file($theme){
- $base_theme = \App::$theme_info['extends'];
+ $base_theme = \App::$theme_info['extends'] ?? '';
- if (file_exists("view/theme/$theme/php/config.php")){
+ if ($theme && file_exists("view/theme/$theme/php/config.php")){
return "view/theme/$theme/php/config.php";
}
- if (file_exists("view/theme/$base_theme/php/config.php")){
+ if ($base_theme && file_exists("view/theme/$base_theme/php/config.php")){
return "view/theme/$base_theme/php/config.php";
}
return null;