diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_last_modif_pages.php | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/modules/mod_last_modif_pages.php b/modules/mod_last_modif_pages.php index 381b703..28b093b 100644 --- a/modules/mod_last_modif_pages.php +++ b/modules/mod_last_modif_pages.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_last_modif_pages.php,v 1.5 2007/03/07 18:48:45 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_last_modif_pages.php,v 1.6 2007/05/23 04:20:37 laetzer Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,26 +8,24 @@ * 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_last_modif_pages.php,v 1.5 2007/03/07 18:48:45 squareing Exp $ + * $Id: mod_last_modif_pages.php,v 1.6 2007/05/23 04:20:37 laetzer Exp $ * @package wiki * @subpackage modules */ -global $gQueryUserId, $module_rows, $module_params, $wikilib; - -/** - * required setup - */ +global $gQueryUserId, $moduleParams, $wikilib; +$params = $moduleParams['module_params']; if( $gBitUser->hasPermission( 'p_wiki_view_page' ) ) { require_once( WIKI_PKG_PATH.'BitPage.php' ); $listHash = array( - 'max_records' => $module_rows, + 'max_records' => $moduleParams['module_rows'], 'sort_mode' => 'last_modified_desc', 'user_id' => $gQueryUserId, ); - $ranking = $wikilib->getList( $listHash ); - $gBitSmarty->assign( 'modLastModif', $ranking ); - $gBitSmarty->assign( 'maxlen', isset( $module_params["maxlen"] ) ? $module_params["maxlen"] : 0 ); + $modLastModif = $wikilib->getList( $listHash ); + + $gBitSmarty->assign( 'modLastModif', $modLastModif ); + $gBitSmarty->assign( 'maxlen', isset( $params["maxlen"] ) ? $params["maxlen"] : 0 ); } -?> +?>
\ No newline at end of file |
