diff options
| author | Christian Fowler <spider@viovio.com> | 2011-03-16 19:00:53 -0400 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2011-03-16 19:00:53 -0400 |
| commit | d731d86d299b4001b0ad34e5357717366cf1986c (patch) | |
| tree | 72454134e08c9799528c0fa5c76f5b6a3d2be2ad /admin | |
| parent | d862f8f9f5912aa2d20ef4ad069a8c33376eddf4 (diff) | |
| download | themes-d731d86d299b4001b0ad34e5357717366cf1986c.tar.gz themes-d731d86d299b4001b0ad34e5357717366cf1986c.tar.bz2 themes-d731d86d299b4001b0ad34e5357717366cf1986c.zip | |
fix module layout variable collision
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/admin_layout_inc.php | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/admin/admin_layout_inc.php b/admin/admin_layout_inc.php index 025662d..f6d4b01 100644 --- a/admin/admin_layout_inc.php +++ b/admin/admin_layout_inc.php @@ -93,9 +93,20 @@ $layoutHash = array( 'layout' => $_REQUEST['module_package'], 'fallback' => FALSE, ); -$layout = $gBitThemes->getLayout( $layoutHash ); -$gBitThemes->generateModuleNames( $layout ); -$gBitSmarty->assign_by_ref( 'layout', $layout ); +$editLayout = $gBitThemes->getLayout( $layoutHash ); +$gBitThemes->generateModuleNames( $editLayout ); +$gBitSmarty->assign( 'editLayout', $editLayout ); + +$combinedList = array_merge( array_keys( $gBitSystem->mPackages ), array_keys( $allLayouts ) ); +$layoutList = array(); +foreach( $combinedList as $l ) { + $layoutList[$l] = $l; + if( isset( $allLayouts[$l] ) ) { + $layoutList[$l] .= ' *'; + } +} +asort( $layoutList ); +$gBitSmarty->assign( 'layoutList', $layoutList ); if( $gBitSystem->isFeatureActive( 'site_top_column' )) { $layoutAreas['top'] = 't'; |
