diff options
author | Mario <mario@mariovavti.com> | 2023-09-13 20:56:27 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-09-13 20:56:27 +0000 |
commit | 8a21c8e618023cc0fb35a843697871649610b079 (patch) | |
tree | 3a19555055070bd3d66708076f9e2cbb5a28ac5e /Zotlabs/Module | |
parent | 8d3d5747d228c249b0eb88051f6e82ca932b3b4b (diff) | |
download | volse-hubzilla-8a21c8e618023cc0fb35a843697871649610b079.tar.gz volse-hubzilla-8a21c8e618023cc0fb35a843697871649610b079.tar.bz2 volse-hubzilla-8a21c8e618023cc0fb35a843697871649610b079.zip |
more theme fixes
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Settings/Display.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Settings/Display.php b/Zotlabs/Module/Settings/Display.php index ea9ae2da1..ee9692014 100644 --- a/Zotlabs/Module/Settings/Display.php +++ b/Zotlabs/Module/Settings/Display.php @@ -163,7 +163,8 @@ class Display { $title_tosource = get_pconfig(local_channel(),'system','title_tosource'); $title_tosource = (($title_tosource===false)? '0': $title_tosource); // default if not set: 0 - $theme_config = ""; + $theme_config = null; + $schemas = null; if(($themeconfigfile = $this->get_theme_config_file($theme)) != null){ require_once($themeconfigfile); if(class_exists('\\Zotlabs\\Theme\\' . ucfirst($theme) . 'Config')) { @@ -188,7 +189,7 @@ class Display { '$uid' => local_channel(), '$theme' => (($themes) ? array('theme', t('Display Theme:'), $theme_selected, '', $themes, 'preview') : false), - '$schema' => array('schema', t('Select scheme'), $existing_schema, '' , $schemas), + '$schema' => (($schemas) ? array('schema', t('Select scheme'), $existing_schema, '' , $schemas) : false), '$preload_images' => array('preload_images', t("Preload images before rendering the page"), $preload_images, t("The subjective page load time will be longer but the page will be ready when displayed"), $yes_no), '$user_scalable' => array('user_scalable', t("Enable user zoom on mobile devices"), $user_scalable, '', $yes_no), |