diff options
| author | laetzer <laetzer@users.sourceforge.net> | 2007-05-23 04:20:37 +0000 |
|---|---|---|
| committer | laetzer <laetzer@users.sourceforge.net> | 2007-05-23 04:20:37 +0000 |
| commit | 28296cfe2c7c5833aac9a4dc040f235828675c12 (patch) | |
| tree | 5e1b842a284abad6b7754b0018e88e683243bf1f /modules | |
| parent | 9a97b194383df13a7c24ef5a5b3c2fa80fdf978a (diff) | |
| download | wiki-28296cfe2c7c5833aac9a4dc040f235828675c12.tar.gz wiki-28296cfe2c7c5833aac9a4dc040f235828675c12.tar.bz2 wiki-28296cfe2c7c5833aac9a4dc040f235828675c12.zip | |
tried to make module obey user params
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 |
