diff options
| author | spider@app2 <spiderr@bitweaver.org> | 2017-06-19 17:57:28 -0400 |
|---|---|---|
| committer | spider@app2 <spiderr@bitweaver.org> | 2017-06-19 17:57:28 -0400 |
| commit | f29502d1a1d68f3671f333774778c252a95ead56 (patch) | |
| tree | a7138fec03d5384a07915a8b33e7630eb7aef20b | |
| parent | e151150a1be9f5ee27efe17b52123123f2013645 (diff) | |
| download | themes-f29502d1a1d68f3671f333774778c252a95ead56.tar.gz themes-f29502d1a1d68f3671f333774778c252a95ead56.tar.bz2 themes-f29502d1a1d68f3671f333774778c252a95ead56.zip | |
use base class SmartyBC::addPluginsDir and include sysplugins
| -rw-r--r-- | BitSmarty.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/BitSmarty.php b/BitSmarty.php index e943c86..b8978d0 100644 --- a/BitSmarty.php +++ b/BitSmarty.php @@ -53,6 +53,7 @@ class BitSmarty extends SmartyBC { $this->force_compile = //$smarty_force_compile; $this->debugging = isset($smarty_debugging) && $smarty_debugging; $this->assign( 'app_name', 'bitweaver' ); + $this->addPluginsDir( EXTERNAL_LIBS_PATH.'smarty/libs/sysplugins' ); $this->addPluginsDir( THEMES_PKG_PATH . "smartyplugins" ); $this->registerFilter('pre', "add_link_ticket" ); $this->error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT; @@ -72,10 +73,6 @@ class BitSmarty extends SmartyBC { } } - function addPluginsDir( $dir ) { - $this->plugins_dir = array_merge( array( $dir ), $this->plugins_dir ); - } - public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null, $display = false, $merge_tpl_vars = true, $no_output_filter = false) { global $gBitSystem; |
