diff options
Diffstat (limited to 'Zotlabs/Render/SmartyInterface.php')
-rw-r--r-- | Zotlabs/Render/SmartyInterface.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Render/SmartyInterface.php b/Zotlabs/Render/SmartyInterface.php index 64c6aa377..003262939 100644 --- a/Zotlabs/Render/SmartyInterface.php +++ b/Zotlabs/Render/SmartyInterface.php @@ -2,7 +2,7 @@ namespace Zotlabs\Render; -use Smarty; +use Smarty\Smarty; use App; class SmartyInterface extends Smarty { @@ -19,20 +19,20 @@ class SmartyInterface extends Smarty { // The order is thus very important here $template_dirs = array('theme' => "view/theme/$thname/tpl/"); - if ( x(App::$theme_info,"extends") ) { + if (!empty(App::$theme_info['extends'])) { $template_dirs = $template_dirs + array('extends' => "view/theme/" . App::$theme_info["extends"] . "/tpl/"); } $template_dirs = $template_dirs + array('base' => 'view/tpl/'); $this->setTemplateDir($template_dirs); $basecompiledir = App::$config['system']['smarty3_folder']; - + $this->setCompileDir($basecompiledir.'/compiled/'); $this->setConfigDir($basecompiledir.'/config/'); $this->setCacheDir($basecompiledir.'/cache/'); - $this->left_delimiter = App::get_template_ldelim('smarty3'); - $this->right_delimiter = App::get_template_rdelim('smarty3'); + $this->setLeftDelimiter(App::get_template_ldelim('smarty3')); + $this->setRightDelimiter(App::get_template_rdelim('smarty3')); // Don't report errors so verbosely $this->error_reporting = E_ALL & ~E_WARNING & ~E_NOTICE; |