diff options
Diffstat (limited to 'smartyplugins/resource._custom.php')
| -rw-r--r-- | smartyplugins/resource._custom.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/smartyplugins/resource._custom.php b/smartyplugins/resource._custom.php index 83aefe5..4046213 100644 --- a/smartyplugins/resource._custom.php +++ b/smartyplugins/resource._custom.php @@ -1,4 +1,7 @@ <?php +namespace Bitweaver\Plugins; +use Smarty\Resource\Smarty_Resource_Custom; + /** * Smarty plugin * ------------------------------------------------------------- @@ -14,7 +17,7 @@ class Smarty_Resource__Custom extends Smarty_Resource_Custom { protected function fetch ( $pTplName, &$pTplSource, &$pTplTime ) { - global $gBitLanguage, $gBitThemes, $gBitSmarty; + global $gBitLanguage, $gBitThemes, $gBitSystem, $gBitSmarty; $ret = ''; // We're gonna run our own cache mechanism for user_modules @@ -32,7 +35,7 @@ class Smarty_Resource__Custom extends Smarty_Resource_Custom { } else { global $moduleParams; if( $moduleParams = $gBitThemes->getCustomModule( $template )) { - $gBitSmarty->assignByRef( 'moduleParams', $moduleParams ); + $gBitSmarty->assign( 'moduleParams', $moduleParams ); $pTplSource = $gBitSmarty->fetch( 'bitpackage:themes/custom_module.tpl' ); // write to chache file $fp = fopen( $cacheFile, "w+" ); |
