diff options
| author | spiderr <spider@viovio.com> | 2013-04-11 13:06:24 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-04-11 13:06:24 -0400 |
| commit | 6c38147093e7a1d48aaa0164ffec91c6f9722360 (patch) | |
| tree | 1f48681c1d9ec08585c848f9e4c2b9e74d2be632 | |
| parent | 2a5e3af015020c7a7629cf055bb1fc1a49cf839b (diff) | |
| download | articles-6c38147093e7a1d48aaa0164ffec91c6f9722360.tar.gz articles-6c38147093e7a1d48aaa0164ffec91c6f9722360.tar.bz2 articles-6c38147093e7a1d48aaa0164ffec91c6f9722360.zip | |
update modules for smarty 3 template centric variables, and assign modules to the _template
| -rw-r--r-- | modules/mod_articles.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/mod_articles.php b/modules/mod_articles.php index 78eecd7..796a64b 100644 --- a/modules/mod_articles.php +++ b/modules/mod_articles.php @@ -52,7 +52,6 @@ if( ( !empty( $module_params['topic_id'] ) || !empty( $module_params['topic_name } $_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' ); +$_template->tpl_vars['listtype'] = new Smarty_variable( ( isset($module_params['list_type']) && (strncasecmp($module_params['list_type'], 'u', 1) == 0) ) ? 'ul' : 'ol' ); $_template->tpl_vars['modArticles'] = new Smarty_variable( $articles ); ?> |
