use dynamic module path for smarty plugins

This commit is contained in:
Daniel Seifert 2013-02-21 13:59:59 +00:00
parent 293ea7dc4e
commit 6001252d9a

View File

@ -1,11 +1,16 @@
<?php
/**
*
*/
class d3_oxutilsview_googleanalytics extends d3_oxutilsview_googleanalytics_parent
{
protected function _fillCommonSmartyProperties( $oSmarty )
{
parent::_fillCommonSmartyProperties($oSmarty);
$oSmarty->plugins_dir[] = '../../modules/d3/d3_googleanalytics/core/smarty/plugins';
$oSmarty->plugins_dir[] =
oxRegistry::getConfig()->getActiveView()->getViewConfig()->getModulePath('d3_googleanalytics').
'core/smarty/plugins';
}
}