summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-09 10:30:36 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-09 10:30:36 +0000
commitd2e25b9a1712076aa615f6d7862b3854c1f8d445 (patch)
tree4e44f0bd443b425daddc2ce0090aad6205818bdb /modules
parent8d929a01235a0f47b79b4b124b4cd239a41d0ae8 (diff)
downloadarticles-d2e25b9a1712076aa615f6d7862b3854c1f8d445.tar.gz
articles-d2e25b9a1712076aa615f6d7862b3854c1f8d445.tar.bz2
articles-d2e25b9a1712076aa615f6d7862b3854c1f8d445.zip
remove getPref() and we continue using old method getPreference();
replace all direct accesses with getPreference() or setPreference() (new function) BitSystem::getPreference() and related functions will be renamed to BitSystem::getConfig()
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_articles.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mod_articles.php b/modules/mod_articles.php
index 86e2cf2..3c04288 100644
--- a/modules/mod_articles.php
+++ b/modules/mod_articles.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_articles/modules/mod_articles.php,v 1.7 2005/10/30 19:48:40 lsces Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_articles/modules/mod_articles.php,v 1.8 2006/02/09 10:30:36 squareing Exp $
* @package article
* @subpackage modules
*/
@@ -33,7 +33,7 @@ if( !empty( $module_params['sort_mode'] ) && in_array( $module_params['sort_mode
$getHash['status_id'] = $status_id;
$getHash['sort_mode'] = $sort_mode;
-$getHash['max_records'] = !empty( $module_rows ) ? $module_rows : $gBitSystem->mPrefs['max_articles'];
+$getHash['max_records'] = !empty( $module_rows ) ? $module_rows : $gBitSystem->getPreference( 'max_articles' );
$getHash['topic'] = !empty( $module_params['topic'] ) ? $module_params['topic'] : NULL;
$articles = $articles->getList( $getHash );