summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2007-04-03 17:28:17 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2007-04-03 17:28:17 +0000
commit0d8777659913d9865f3a3e7d074ddf8e086b3757 (patch)
tree9ac89b882dc2acd2ee371a769a7df56e4ecc2089 /modules
parent21801336c61eb0027bedbf281915ac855d7b8465 (diff)
downloadwiki-0d8777659913d9865f3a3e7d074ddf8e086b3757.tar.gz
wiki-0d8777659913d9865f3a3e7d074ddf8e086b3757.tar.bz2
wiki-0d8777659913d9865f3a3e7d074ddf8e086b3757.zip
update moduleParams for new layout
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_wiki_last_comments.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/mod_wiki_last_comments.php b/modules/mod_wiki_last_comments.php
index 8d14012..dd9b51e 100644
--- a/modules/mod_wiki_last_comments.php
+++ b/modules/mod_wiki_last_comments.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_wiki_last_comments.php,v 1.4 2007/01/17 20:16:24 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_wiki_last_comments.php,v 1.5 2007/04/03 17:28:17 bitweaver Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: mod_wiki_last_comments.php,v 1.4 2007/01/17 20:16:24 spiderr Exp $
+ * $Id: mod_wiki_last_comments.php,v 1.5 2007/04/03 17:28:17 bitweaver Exp $
* @package wiki
* @subpackage modules
*/
@@ -16,14 +16,14 @@
/**
* Show last comments on wiki pages
*/
-global $gQueryUserId;
+global $gQueryUserId, $moduleParams;
/**
* required setup
*/
if( $gBitUser->hasPermission( 'p_wiki_view_page' ) ) {
require_once( LIBERTY_PKG_PATH.'LibertyComment.php' );
$cmt = new LibertyComment();
- $lastComments = $cmt->getList( array( 'max_records' => $module_rows, 'user_id' => $gQueryUserId, 'content_type_guid' => BITPAGE_CONTENT_TYPE_GUID ) );
+ $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');
}