From ee996f6b71c41e05bcde332d23467980c08941fe Mon Sep 17 00:00:00 2001 From: Sylvie Greverend Date: Wed, 19 Apr 2006 09:41:10 +0000 Subject: change theme only if feature active and if theme associated to the pigeonhole --- Pigeonholes.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Pigeonholes.php') diff --git a/Pigeonholes.php b/Pigeonholes.php index 3e341bd..5831d28 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ < - * @version $Revision: 1.53 $ + * @version $Revision: 1.54 $ * @package pigeonholes */ @@ -826,7 +826,9 @@ function pigeonholes_content_display( &$pObject ) { $pigeonData[] = $pigeonholes->mInfo; // set the theme chosen for this page - virtually random if page is part of multiple themes $pigeonholes->loadPreferences(); - $gPreviewStyle = $pigeonholes->getPreference( 'style' ); + if ( $gBitSystem->isFeatureActive( 'pigeonholes_themes' ) && ($g = $pigeonholes->getPreference( 'style' ) ) ) { + $gPreviewStyle = $g; + } // 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' ) ) ) { $msg = tra( "This content is part of a category to which you have no access to. Please log in or request the appropriate permission from the site administrator." ); -- cgit v1.3