From e6c43b75144e3d7204b880f72e354a705d6a9e48 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sat, 16 Jun 2007 20:55:25 +0000 Subject: move from gPreviewStyle to gBitThemes->setStyle() --- Pigeonholes.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'Pigeonholes.php') diff --git a/Pigeonholes.php b/Pigeonholes.php index a055893..1af9547 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.88 $ + * @version $Revision: 1.89 $ * @package pigeonholes */ @@ -922,7 +922,7 @@ function pigeonholes_pathlist_sorter( $aa, $ab ) { // ============= SERVICE FUNCTIONS ============= function pigeonholes_content_display( &$pObject ) { - global $gBitSystem, $gBitSmarty, $gBitUser, $gPreviewStyle; + global $gBitSystem, $gBitSmarty, $gBitUser, $gBitThemes; if( $gBitSystem->isFeatureActive( 'pigeonholes_display_members' ) || $gBitSystem->isFeatureActive( 'pigeonholes_display_path' ) ) { $pigeonholes = new Pigeonholes(); if( $gBitUser->hasPermission( 'p_pigeonholes_view' ) ) { @@ -934,10 +934,7 @@ function pigeonholes_content_display( &$pObject ) { $pigeonData[] = $pigeonholes->mInfo; // set the theme chosen for this page - virtually random if page is part of multiple themes if( $gBitSystem->isFeatureActive( 'pigeonholes_themes' ) ) { - $pigeonholes->loadPreferences(); - if( $g = $pigeonholes->getPreference( 'style' ) ) { - $gPreviewStyle = $g; - } + $gBitThemes->setStyle( $pigeonholes->getPreference( 'style' )); } // we need to check all pigeonholes in the path, load the prefs and work out if the user is allowed to view the page if( !$pigeonholes->checkPathPermissions( $pigeonholes->getField( 'path' ) ) ) { -- cgit v1.3