diff --git a/engine/lib/external/Smarty-3.0.7/libs/sysplugins/smarty_internal_template.php b/engine/lib/external/Smarty-3.0.7/libs/sysplugins/smarty_internal_template.php index 070fb840..2091a333 100644 --- a/engine/lib/external/Smarty-3.0.7/libs/sysplugins/smarty_internal_template.php +++ b/engine/lib/external/Smarty-3.0.7/libs/sysplugins/smarty_internal_template.php @@ -83,6 +83,9 @@ class Smarty_Internal_Template extends Smarty_Internal_Data { */ public function __construct($template_resource, $smarty, $_parent = null, $_cache_id = null, $_compile_id = null, $_caching = null, $_cache_lifetime = null) { + // Hack for delegate template in LiveStreet + $template_resource=Engine::getInstance()->Plugin_GetDelegate('template',$template_resource); + // End hack ----------------------------------------------------------------------------------- $this->smarty = &$smarty; // Smarty parameter $this->cache_id = $_cache_id === null ? $this->smarty->cache_id : $_cache_id; diff --git a/engine/modules/viewer/lsSmarty.class.php b/engine/modules/viewer/lsSmarty.class.php index ede7b169..71fa54c1 100644 --- a/engine/modules/viewer/lsSmarty.class.php +++ b/engine/modules/viewer/lsSmarty.class.php @@ -1,9 +1,4 @@ Plugin_GetDelegate('template',$params['smarty_include_tpl_file']); - } - parent::_smarty_include($params); - } + } \ No newline at end of file