diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-05-02 15:31:20 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-05-02 15:31:20 +0000 |
| commit | 34ad29c7987737826e55302e1f5f0de825fa7c7a (patch) | |
| tree | f93df2092f01fd88f719cba0acf07e8686480e85 /Pigeonholes.php | |
| parent | 43796a6015424ad7d59a86b1c6dc224f959355fd (diff) | |
| download | pigeonholes-34ad29c7987737826e55302e1f5f0de825fa7c7a.tar.gz pigeonholes-34ad29c7987737826e55302e1f5f0de825fa7c7a.tar.bz2 pigeonholes-34ad29c7987737826e55302e1f5f0de825fa7c7a.zip | |
reduce db count by one - woohoo!
Diffstat (limited to 'Pigeonholes.php')
| -rw-r--r-- | Pigeonholes.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Pigeonholes.php b/Pigeonholes.php index efa6697..b39f82f 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.55 2006/04/19 13:07:07 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.56 2006/05/02 15:31:20 squareing Exp $ * * +----------------------------------------------------------------------+ * | Copyright ( c ) 2004, bitweaver.org @@ -17,7 +17,7 @@ * Pigeonholes class * * @author xing <xing@synapse.plus.com> - * @version $Revision: 1.55 $ + * @version $Revision: 1.56 $ * @package pigeonholes */ @@ -825,9 +825,11 @@ function pigeonholes_content_display( &$pObject ) { //$pigeonholes->loadPreferences(); $pigeonData[] = $pigeonholes->mInfo; // set the theme chosen for this page - virtually random if page is part of multiple themes - $pigeonholes->loadPreferences(); - if ( $gBitSystem->isFeatureActive( 'pigeonholes_themes' ) && ($g = $pigeonholes->getPreference( 'style' ) ) ) { - $gPreviewStyle = $g; + if( $gBitSystem->isFeatureActive( 'pigeonholes_themes' ) ) { + $pigeonholes->loadPreferences(); + if( $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' ) ) ) { |
