summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2013-04-11 13:08:37 -0400
committerspiderr <spider@viovio.com>2013-04-11 13:08:37 -0400
commitc74f35289c0ec34ed48dc91b7dae84fcf42f45cb (patch)
tree40bb42e9b8b9cb870bfc3a9c7e3b510729c53570 /modules
parentc52f4bc7a27a3381edb157adc0716ce898dfd123 (diff)
downloadwiki-c74f35289c0ec34ed48dc91b7dae84fcf42f45cb.tar.gz
wiki-c74f35289c0ec34ed48dc91b7dae84fcf42f45cb.tar.bz2
wiki-c74f35289c0ec34ed48dc91b7dae84fcf42f45cb.zip
update modules for smarty 3 template centric variables, and assign modules to the _template
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_comm_received_objects.php2
-rw-r--r--modules/mod_wiki_last_comments.php7
2 files changed, 5 insertions, 4 deletions
diff --git a/modules/mod_comm_received_objects.php b/modules/mod_comm_received_objects.php
index abf97af..6c857b5 100644
--- a/modules/mod_comm_received_objects.php
+++ b/modules/mod_comm_received_objects.php
@@ -16,5 +16,5 @@
require_once( WIKI_PKG_PATH.'BitPage.php' );
$wikilib = new WikiLib();
$ranking = $wikilib->list_received_pages(0, -1, $sort_mode = 'title_asc', '');
-$gBitSmarty->assign('modReceivedPages', $ranking["cant"]);
+$_template->tpl_vars['modReceivedPages'] = new Smarty_variable( $ranking["cant"]);
?>
diff --git a/modules/mod_wiki_last_comments.php b/modules/mod_wiki_last_comments.php
index 6d0eec0..4f8e544 100644
--- a/modules/mod_wiki_last_comments.php
+++ b/modules/mod_wiki_last_comments.php
@@ -20,8 +20,9 @@ global $gQueryUserId, $moduleParams;
if( $gBitUser->hasPermission( 'p_wiki_view_page' ) ) {
require_once( LIBERTY_PKG_PATH.'LibertyComment.php' );
$cmt = new LibertyComment();
- $lastComments = $cmt->getList( array( 'max_records' => $moduleParams['module_rows'], 'user_id' => $gQueryUserId, 'content_type_guid' => BITPAGE_CONTENT_TYPE_GUID ) );
- $gBitSmarty->assign('lastComments', $lastComments);
- $gBitSmarty->assign('moretooltips', isset($module_params["moretooltips"]) ? $module_params["moretooltips"] : 'n');
+ $listHash = array( 'max_records' => $moduleParams['module_rows'], 'user_id' => $gQueryUserId, 'content_type_guid' => BITPAGE_CONTENT_TYPE_GUID );
+ $lastComments = $cmt->getList( $listHash );
+ $_template->tpl_vars['lastComments'] = new Smarty_variable( $lastComments);
+ $_template->tpl_vars['moretooltips'] = new Smarty_variable( isset($module_params["moretooltips"]) ? $module_params["moretooltips"] : 'n');
}
?>