summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2016-02-07 20:12:48 +0000
committerlsces <lester@lsces.co.uk>2016-02-07 20:12:48 +0000
commit6ffc0b6c8d6deb601ef7289087073194360b0c9e (patch)
tree3826edda816335af76bd9084adfeb1e739281f27
parent81963ca5e2c45089fefd482ef13d463675d777fa (diff)
downloadthemes-6ffc0b6c8d6deb601ef7289087073194360b0c9e.tar.gz
themes-6ffc0b6c8d6deb601ef7289087073194360b0c9e.tar.bz2
themes-6ffc0b6c8d6deb601ef7289087073194360b0c9e.zip
Move from Smarty2 to Smarty3 function style
File left based on SmartyBC until all packages coverted.
-rw-r--r--BitSmarty.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/BitSmarty.php b/BitSmarty.php
index 07a1291..e943c86 100644
--- a/BitSmarty.php
+++ b/BitSmarty.php
@@ -14,7 +14,7 @@
* required setup
*/
-require_once( CONFIG_PKG_PATH.'externals/smarty/libs/SmartyBC.class.php' );
+require_once( EXTERNAL_LIBS_PATH.'smarty/libs/SmartyBC.class.php' );
/**
@@ -54,13 +54,13 @@ class BitSmarty extends SmartyBC {
$this->debugging = isset($smarty_debugging) && $smarty_debugging;
$this->assign( 'app_name', 'bitweaver' );
$this->addPluginsDir( THEMES_PKG_PATH . "smartyplugins" );
- $this->register_prefilter( "add_link_ticket" );
+ $this->registerFilter('pre', "add_link_ticket" );
$this->error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT;
-
+
global $permCheck;
$permCheck = new PermissionCheck();
// SMARTY3 $this->register_object( 'perm', $permCheck, array(), TRUE, array( 'autoComplete' ));
- $this->assign_by_ref( 'perm', $permCheck );
+ $this->assignByRef( 'perm', $permCheck );
}
function scanPackagePluginDirs() {
@@ -140,7 +140,7 @@ class BitSmarty extends SmartyBC {
$moduleParams['module_params'] = $gBitThemes->parseString( $pIncludeVars['module_params'] );
} else {
// Module Params were passed in from the template, like kernel/dynamic.tpl
- $moduleParams = $this->get_template_vars( 'moduleParams' );
+ $moduleParams = $this->getTemplateVars( 'moduleParams' );
}
include( $includeFile );
$ret = TRUE;