summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2013-04-11 12:38:24 -0400
committerspiderr <spider@viovio.com>2013-04-11 12:38:24 -0400
commit2a5e3af015020c7a7629cf055bb1fc1a49cf839b (patch)
tree1ac9b2b2638ab8cd9691e0d3a56f5202606c017f /modules
parent8a276edeff30bf8c0f924733c5844be8b933f668 (diff)
downloadarticles-2a5e3af015020c7a7629cf055bb1fc1a49cf839b.tar.gz
articles-2a5e3af015020c7a7629cf055bb1fc1a49cf839b.tar.bz2
articles-2a5e3af015020c7a7629cf055bb1fc1a49cf839b.zip
update modules for smarty 3 template centric variables, and assign modules to the _template
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_articles.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/mod_articles.php b/modules/mod_articles.php
index 43a380d..78eecd7 100644
--- a/modules/mod_articles.php
+++ b/modules/mod_articles.php
@@ -44,15 +44,15 @@ $getHash['topic_id'] = !empty( $module_params['topic_id'] ) ? $module_param
$articles = $articles->getList( $getHash );
if( ( !empty( $module_params['topic_id'] ) || !empty( $module_params['topic_name'] ) ) && empty($moduleParams['title']) && !empty( $articles ) ) {
- $gBitSmarty->assign( 'moduleTitle', $articles[0]['topic_name'] );
+ $_template->tpl_vars['moduleTitle'] = new Smarty_variable( $articles[0]['topic_name'] );
} elseif( !empty($moduleParams['title']) ) {
- $gBitSmarty->assign( 'moduleTitle', $moduleParams['title'] );
+ $_template->tpl_vars['moduleTitle'] = new Smarty_variable( $moduleParams['title'] );
} else {
- $gBitSmarty->assign( 'moduleTitle', "Articles" );
+ $_template->tpl_vars['moduleTitle'] = new Smarty_variable( "Articles" );
}
-$gBitSmarty->assign( 'params', !empty( $moduleParams['params'] ) ? $moduleParams['params'] : '');
+$_template->tpl_vars['params'] = new Smarty_variable( !empty( $moduleParams['params'] );
$gBitSmarty->assign( 'listtype',
( isset($module_params['list_type']) && (strncasecmp($module_params['list_type'], 'u', 1) == 0) ) ? 'ul' : 'ol' );
-$gBitSmarty->assign( 'modArticles', $articles );
+$_template->tpl_vars['modArticles'] = new Smarty_variable( $articles );
?>