summaryrefslogtreecommitdiff
path: root/comments_inc.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-03-01 18:35:17 +0000
committerChristian Fowler <spider@viovio.com>2006-03-01 18:35:17 +0000
commitb587ea9a09835daf9e832fee0df17e0a6088c45f (patch)
treebeb1d5c5de063d533e18136f3fac9097c6ee371b /comments_inc.php
parent6716fb6590171653a3fbd5ec2e3647bfdb63addb (diff)
downloadliberty-b587ea9a09835daf9e832fee0df17e0a6088c45f.tar.gz
liberty-b587ea9a09835daf9e832fee0df17e0a6088c45f.tar.bz2
liberty-b587ea9a09835daf9e832fee0df17e0a6088c45f.zip
move BitSystem:: preferences methods to get/set/load/storeConfig to avoid conflict with new content preferences
Diffstat (limited to 'comments_inc.php')
-rw-r--r--comments_inc.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/comments_inc.php b/comments_inc.php
index ba9ddd7..489a164 100644
--- a/comments_inc.php
+++ b/comments_inc.php
@@ -3,12 +3,12 @@
* comment_inc
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.10 $
+ * @version $Revision: 1.11 $
* @package liberty
* @subpackage functions
*/
-// $Header: /cvsroot/bitweaver/_bit_liberty/comments_inc.php,v 1.10 2006/02/16 13:48:11 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_liberty/comments_inc.php,v 1.11 2006/03/01 18:35:16 spiderr 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.
@@ -112,19 +112,19 @@ if (@BitBase::verifyId($_REQUEST['post_comment_reply_id'])) {
$gBitSmarty->assign('post_comment_reply_id', $post_comment_reply_id);
}
-$maxComments = $gBitSystem->getPreference( 'comments_per_page', 10 );
+$maxComments = $gBitSystem->getConfig( 'comments_per_page', 10 );
if (!empty($_REQUEST["comments_maxComments"])) {
$maxComments = $_REQUEST["comments_maxComments"];
$comments_at_top_of_page = 'y';
}
-$comments_sort_mode = $gBitSystem->getPreference( 'comments_default_ordering', 'commentDate_desc' );
+$comments_sort_mode = $gBitSystem->getConfig( 'comments_default_ordering', 'commentDate_desc' );
if (!empty($_REQUEST["comments_sort_mode"])) {
$comments_sort_mode = $_REQUEST["comments_sort_mode"];
$comments_at_top_of_page = 'y';
}
-$comments_display_style = $gBitSystem->getPreference( 'comments_default_display_mode', 'threaded' );
+$comments_display_style = $gBitSystem->getConfig( 'comments_default_display_mode', 'threaded' );
if( !empty( $_REQUEST["comments_style"] ) ) {
$comments_display_style = $_REQUEST["comments_style"];
$comments_at_top_of_page = 'y';
@@ -182,7 +182,7 @@ $gBitSmarty->assign('postComment', $postComment);
$gBitSmarty->assign('currentTimestamp', time());
$gBitSmarty->assign('comments_return_url', $comments_return_url);
-$gBitSmarty->assign('comments_at_top_of_page', ( isset( $comments_at_top_of_page ) && $gBitSystem->getPreference( 'comments_reorganise_page_layout', 'n' ) == 'y' ) ? $comments_at_top_of_page : NULL );
+$gBitSmarty->assign('comments_at_top_of_page', ( isset( $comments_at_top_of_page ) && $gBitSystem->getConfig( 'comments_reorganise_page_layout', 'n' ) == 'y' ) ? $comments_at_top_of_page : NULL );
$gBitSmarty->assign('comments_style', $comments_display_style);
$gBitSmarty->assign('comments_sort_mode', $comments_sort_mode);
?>