put theme config into its own namespace

This commit is contained in:
redmatrix
2016-09-01 22:20:08 -07:00
parent b3efdf2109
commit 47dd1da6fb
3 changed files with 8 additions and 6 deletions

View File

@@ -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) {