diff options
| author | lsces <lester@lsces.co.uk> | 2025-09-04 11:17:55 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2025-09-04 11:17:55 +0100 |
| commit | 074a097c26e53bd2338e2f3162a1ff22276ff6b8 (patch) | |
| tree | 144e89efd2ac5c4c189fb2caff64ac49249f6821 | |
| parent | 09dfa5c64a766ee29c2eabfae35bad6e37977eb1 (diff) | |
| download | themes-074a097c26e53bd2338e2f3162a1ff22276ff6b8.tar.gz themes-074a097c26e53bd2338e2f3162a1ff22276ff6b8.tar.bz2 themes-074a097c26e53bd2338e2f3162a1ff22276ff6b8.zip | |
Actually I think this is now retired by the BitweaverExtension.
| -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+" ); |
