summaryrefslogtreecommitdiff
path: root/preferences.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-03-01 18:35:20 +0000
committerChristian Fowler <spider@viovio.com>2006-03-01 18:35:20 +0000
commit4506236a11190b302809035a86005606a644073b (patch)
tree231f189591cea7896319b5732bc487c944ed12f3 /preferences.php
parent716651b5aa88c887b11f2ccb4b694551ada58ed0 (diff)
downloadusers-4506236a11190b302809035a86005606a644073b.tar.gz
users-4506236a11190b302809035a86005606a644073b.tar.bz2
users-4506236a11190b302809035a86005606a644073b.zip
move BitSystem:: preferences methods to get/set/load/storeConfig to avoid conflict with new content preferences
Diffstat (limited to 'preferences.php')
-rw-r--r--preferences.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/preferences.php b/preferences.php
index da50ab3..e597f71 100644
--- a/preferences.php
+++ b/preferences.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/preferences.php,v 1.22 2006/02/22 10:27:21 jht001 Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/preferences.php,v 1.23 2006/03/01 18:35:20 spiderr Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* 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: preferences.php,v 1.22 2006/02/22 10:27:21 jht001 Exp $
+ * $Id: preferences.php,v 1.23 2006/03/01 18:35:20 spiderr Exp $
* @package users
* @subpackage functions
*/
@@ -53,7 +53,7 @@ if( $gBitSystem->isPackageActive( 'wiki' ) ) {
$gBitSmarty->assign('url_visit', httpPrefix(). $foo2);
}
if( $gBitSystem->isFeatureActive( 'custom_user_fields' ) ) {
- $customFields= explode( ',', $gBitSystem->getPreference( 'custom_user_fields' ) );
+ $customFields= explode( ',', $gBitSystem->getConfig( 'custom_user_fields' ) );
$gBitSmarty->assign('customFields', $customFields);
}
@@ -135,7 +135,7 @@ if (isset($_REQUEST["chgpswd"])) {
$gBitSystem->fatalError( tra( "Invalid old password" ) );
}
//Validate password here
- if (strlen($_REQUEST["pass1"]) < $gBitSystem->getPreference( 'min_pass_length', 4 ) ) {
+ if (strlen($_REQUEST["pass1"]) < $gBitSystem->getConfig( 'min_pass_length', 4 ) ) {
$gBitSystem->fatalError( tra("Password should be at least"). ' ' . $min_pass_length . ' ' . tra("characters long") );
}
// Check this code
@@ -183,7 +183,7 @@ closedir ($h);
sort ($flags);
$gBitSmarty->assign('flags', $flags);
-$editUser->mInfo['userbreadCrumb'] = $editUser->getPreference( 'userbreadCrumb', $gBitSystem->getPreference('userbreadCrumb', 4) );
+$editUser->mInfo['userbreadCrumb'] = $editUser->getPreference( 'userbreadCrumb', $gBitSystem->getConfig('userbreadCrumb', 4) );
$editUser->mInfo['homePage'] = $editUser->getPreference( 'homePage', '');
$gBitSmarty->assign( 'editUser', $editUser->mInfo );