summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Bello <tylerbello@users.sourceforge.net>2009-09-15 18:50:42 +0000
committerTyler Bello <tylerbello@users.sourceforge.net>2009-09-15 18:50:42 +0000
commit83ab8ee8ca87f87268a15c5cbda968a15c350b77 (patch)
tree3681a03efdc4a882037a34f310257e6f4b5719da
parent3149c9217bd3c8595471d9f62cde4c5d4a0d2884 (diff)
downloadthemes-83ab8ee8ca87f87268a15c5cbda968a15c350b77.tar.gz
themes-83ab8ee8ca87f87268a15c5cbda968a15c350b77.tar.bz2
themes-83ab8ee8ca87f87268a15c5cbda968a15c350b77.zip
fix to add module to current layout when add to all box is checked
-rw-r--r--admin/admin_layout_inc.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/admin/admin_layout_inc.php b/admin/admin_layout_inc.php
index 84b07d8..a544e6d 100644
--- a/admin/admin_layout_inc.php
+++ b/admin/admin_layout_inc.php
@@ -1,5 +1,5 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_themes/admin/admin_layout_inc.php,v 1.8 2008/06/26 09:56:44 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_themes/admin/admin_layout_inc.php,v 1.9 2009/09/15 18:50:42 tylerbello Exp $
// Initialization
require_once( '../../bit_setup_inc.php' );
@@ -68,16 +68,19 @@ if( isset( $_REQUEST['module_id'] ) && !empty( $_REQUEST['move_module'] )) {
}
// either add the module to all available layouts or just the active one
+
+ $fAssign['layout'] = $_REQUEST['module_package'];
+ $gBitThemes->storeModule( $fAssign );
+ unset( $fAssign['store'] );
if( !empty( $fAssign['add_to_all'] )) {
foreach( array_keys( $cloneLayouts ) as $pkg ) {
- $fAssign['layout'] = $pkg;
- $gBitThemes->storeModule( $fAssign );
- unset( $fAssign['store'] );
+ if( $pkg != $_REQUEST['module_package'] ){
+ $fAssign['layout'] = $pkg;
+ $gBitThemes->storeModule( $fAssign );vd($fAssign['store']);
+ unset( $fAssign['store'] );
+ }
}
- } else {
- $fAssign['layout'] = $_REQUEST['module_package'];
- $gBitThemes->storeModule( $fAssign );
- }
+ }
}
// this will sort the layout selection dropdown