From 851c98947032ededaa174f6fd0a39f4622de0056 Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Wed, 1 Mar 2006 20:16:23 +0000 Subject: move BitSystem:: preferences methods to get/set/load/storeConfig to avoid conflict with new content preferences --- Pigeonholes.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Pigeonholes.php') diff --git a/Pigeonholes.php b/Pigeonholes.php index 46d5945..35fb92f 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.48 $ + * @version $Revision: 1.49 $ * @package pigeonholes */ @@ -376,7 +376,7 @@ class Pigeonholes extends LibertyAttachable { $aux['display_path'] = Pigeonholes::getDisplayPath( $aux['path'] ); $aux['members'] = $this->getMemberList( array( 'content_id' => $aux['content_id'] ) ); $aux['members_count'] = count( $aux['members'] ); - if( $gBitSystem->getPreference( 'pigeonholes_list_style' ) == 'table' ) { + if( $gBitSystem->getConfig( 'pigeonholes_list_style' ) == 'table' ) { $this->alphabetiseMembers( $aux['members'] ); } } @@ -404,7 +404,7 @@ class Pigeonholes extends LibertyAttachable { **/ function checkPathPermissions( $pPath ) { global $gBitUser, $gBitSystem; - if( $gBitSystem->getPreference( 'pigeonholes_permissions' ) || $gBitSystem->getPreference( 'pigeonholes_groups' ) ) { + if( $gBitSystem->getConfig( 'pigeonholes_permissions' ) || $gBitSystem->getConfig( 'pigeonholes_groups' ) ) { foreach( $pPath as $path ) { $contentIds[] = $path['content_id']; } @@ -431,7 +431,7 @@ class Pigeonholes extends LibertyAttachable { global $gBitSystem; if( !empty( $pMememberHash ) ) { usort( $pMememberHash, "pigeonholes_alphabetiser" ); - $per_column = ceil( count( $pMememberHash ) / $gBitSystem->getPreference( 'pigeonhole_display_columns', 3 ) ); + $per_column = ceil( count( $pMememberHash ) / $gBitSystem->getConfig( 'pigeonhole_display_columns', 3 ) ); $i = 1; $j = 1; foreach( $pMememberHash as $member ) { -- cgit v1.3