diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-02-08 21:51:12 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-02-08 21:51:12 +0000 |
| commit | c7a1507661345c48d7ea77e0d315fb5dc387f6b7 (patch) | |
| tree | 0b1c2267be3d3f9b328975c72112533118535b03 /index.php | |
| parent | b60eaf8f03b91ec5b6c17a88581734f304be8370 (diff) | |
| download | articles-c7a1507661345c48d7ea77e0d315fb5dc387f6b7.tar.gz articles-c7a1507661345c48d7ea77e0d315fb5dc387f6b7.tar.bz2 articles-c7a1507661345c48d7ea77e0d315fb5dc387f6b7.zip | |
php: introduce new method: getPref( $package, $pref, $defaut ) (order is open for discussion
tpl: $gBitPref.package.pref
applied package name to all saves - should make database more organised and should allow more reliable uninstalls in the future
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_articles/index.php,v 1.10 2006/02/06 18:43:08 lsces Exp $ +// $Header: /cvsroot/bitweaver/_bit_articles/index.php,v 1.11 2006/02/08 21:51:12 squareing Exp $ // Copyright( c )2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // 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. @@ -22,7 +22,7 @@ include_once( ARTICLES_PKG_PATH.'article_filter_inc.php' ); if( $gBitUser->isAdmin() || $gBitUser->hasPermission( 'bit_p_admin_cms' ) ) { $_REQUEST['status_id'] = !empty( $_REQUEST['status_id'] ) ? $_REQUEST['status_id'] : ARTICLE_STATUS_APPROVED; - $_REQUEST['max_records'] = !empty( $_REQUEST['max_records'] ) ? $_REQUEST['max_records'] : $gBitSystem->mPrefs['max_articles']; + $_REQUEST['max_records'] = !empty( $_REQUEST['max_records'] ) ? $_REQUEST['max_records'] : $gBitSystem->getPreference( 'max_articles' ); $_REQUEST['topic_id'] = !empty( $_REQUEST['topic_id'] ) ? $_REQUEST['topic_id'] : NULL; $_REQUEST['type_id'] = !empty( $_REQUEST['type_id'] ) ? $_REQUEST['type_id'] : NULL; } else { |
