From 47dd1da6fb8de2c9ba4b225e5680b6c1bbb2ca2b Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 1 Sep 2016 22:20:08 -0700 Subject: put theme config into its own namespace --- Zotlabs/Module/Settings.php | 4 ++-- Zotlabs/Module/Theme_info.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Settings.php b/Zotlabs/Module/Settings.php index cfaf07c45..729a9b226 100644 --- a/Zotlabs/Module/Settings.php +++ b/Zotlabs/Module/Settings.php @@ -268,8 +268,8 @@ class Settings extends \Zotlabs\Web\Controller { // call theme_post only if theme has not been changed if( ($themeconfigfile = $this->get_theme_config_file($theme)) != null){ require_once($themeconfigfile); - if(class_exists(ucfirst($theme) . 'Config')) { - $clsname = ucfirst($theme) . 'Config'; + if(class_exists('\\Zotlabs\\Theme\\' . ucfirst($theme) . 'Config')) { + $clsname = '\\Zotlabs\\Theme\\' . ucfirst($theme) . 'Config'; $theme_config = new $clsname(); $schemas = $theme_config->get_schemas(); if(array_key_exists($_POST['schema'],$schemas)) diff --git a/Zotlabs/Module/Theme_info.php b/Zotlabs/Module/Theme_info.php index 91ca484b7..e27ec9444 100644 --- a/Zotlabs/Module/Theme_info.php +++ b/Zotlabs/Module/Theme_info.php @@ -15,8 +15,8 @@ class Theme_info extends \Zotlabs\Web\Controller { $theme_config = ""; if(($themeconfigfile = $this->get_theme_config_file($theme)) != null){ require_once($themeconfigfile); - if(class_exists(ucfirst($theme) . 'Config')) { - $clsname = ucfirst($theme) . 'Config'; + if(class_exists('\\Zotlabs\\Theme\\' . ucfirst($theme) . 'Config')) { + $clsname = '\\Zotlabs\\Theme\\' . ucfirst($theme) . 'Config'; $th_config = new $clsname(); $schemas = $th_config->get_schemas(); if($schemas) { -- cgit v1.2.3