Bug fix: add dir to smarty plugin dir list rather than replacing orig

This commit is contained in:
2011-08-26 17:41:07 +01:00
parent 3497eb8e1e
commit e7cf24bb4f

View File

@@ -25,7 +25,7 @@ class RippingCluster_Main extends SihnonFramework_Main {
$this->smarty->compile_dir = static::makeAbsolutePath($smarty_tmp . '/tmp/templates');
$this->smarty->cache_dir = static::makeAbsolutePath($smarty_tmp . '/tmp/cache');
$this->smarty->config_dir = static::makeAbsolutePath($smarty_tmp . '/config');
$this->smarty->plugins_dir = static::makeAbsolutePath('./source/smarty/plugins');
$this->smarty->plugins_dir[]= static::makeAbsolutePath('./source/smarty/plugins');
$this->smarty->registerPlugin('modifier', 'formatDuration', array('RippingCluster_Main', 'formatDuration'));
$this->smarty->registerPlugin('modifier', 'formatFilesize', array('RippingCluster_Main', 'formatFilesize'));