summaryrefslogtreecommitdiff
path: root/Pigeonholes.php
diff options
context:
space:
mode:
authorSylvie Greverend <sylvieg@users.sourceforge.net>2006-04-19 09:41:10 +0000
committerSylvie Greverend <sylvieg@users.sourceforge.net>2006-04-19 09:41:10 +0000
commitee996f6b71c41e05bcde332d23467980c08941fe (patch)
treecc24e830c8f5ec8b2933a138d27cd41f98cfb450 /Pigeonholes.php
parent3fbea44ae96c5a726ca9d64dbce78e317b21bcb5 (diff)
downloadpigeonholes-ee996f6b71c41e05bcde332d23467980c08941fe.tar.gz
pigeonholes-ee996f6b71c41e05bcde332d23467980c08941fe.tar.bz2
pigeonholes-ee996f6b71c41e05bcde332d23467980c08941fe.zip
change theme only if feature active and if theme associated to the pigeonhole
Diffstat (limited to 'Pigeonholes.php')
-rw-r--r--Pigeonholes.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/Pigeonholes.php b/Pigeonholes.php
index 3e341bd..5831d28 100644
--- a/Pigeonholes.php
+++ b/Pigeonholes.php
@@ -1,6 +1,6 @@
<<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.53 2006/04/18 21:39:44 sylvieg Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.54 2006/04/19 09:41:10 sylvieg Exp $
*
* +----------------------------------------------------------------------+
* | Copyright ( c ) 2004, bitweaver.org
@@ -17,7 +17,7 @@
* Pigeonholes class
*
* @author xing <xing@synapse.plus.com>
- * @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." );