diff options
| author | lsces <lester@lsces.co.uk> | 2012-10-01 10:47:25 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2012-10-01 10:47:25 +0100 |
| commit | 26c65cdc6941f6d5d347b65c38bc24d23ff04a66 (patch) | |
| tree | c03c2511b5475b9dc7a8aab3dcf3a4fef29ca108 /menu_items.php | |
| parent | 931d1bfacb3cf7b19d8fda100e67aeb8c13862e0 (diff) | |
| download | nexus-26c65cdc6941f6d5d347b65c38bc24d23ff04a66.tar.gz nexus-26c65cdc6941f6d5d347b65c38bc24d23ff04a66.tar.bz2 nexus-26c65cdc6941f6d5d347b65c38bc24d23ff04a66.zip | |
Reload page to get around the open transaction problem.
I will revert the loads when I track down the real problem, but this does at
least allow nexus to work on Firebird.
Diffstat (limited to 'menu_items.php')
| -rw-r--r-- | menu_items.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/menu_items.php b/menu_items.php index ffac5a1..c912490 100644 --- a/menu_items.php +++ b/menu_items.php @@ -16,7 +16,7 @@ include_once( NEXUS_PKG_PATH.'menu_lookup_inc.php' ); $gBitSystem->verifyPermission( 'p_nexus_create_menus' ); if( empty( $_REQUEST['menu_id'] ) ) { - header( 'Location:'.NEXUS_PKG_URL.'index.php' ); + bit_redirect( NEXUS_PKG_URL.'index.php' ); } // get content and pass it on @@ -37,7 +37,7 @@ if( isset( $_REQUEST['store_item'] ) ) { } else { $formfeedback['error'] = $gNexus->mErrors; } - $gNexus->load(); + bit_redirect( NEXUS_PKG_URL.'menu_items.php?menu_id='.$_REQUEST['menu_id'] ); } if( isset( $_REQUEST['remove_item'] ) && is_array( $_REQUEST['remove_item'] ) ) { @@ -52,8 +52,8 @@ if( isset( $_REQUEST['remove_item'] ) && is_array( $_REQUEST['remove_item'] ) ) $formfeedback['success'] = tra( 'The following items were successfully removed from the menu' ).': '; $gBitSmarty->assign( 'delList', $delList ); } - $gNexus->load(); $gNexus->writeMenuCache(); + bit_redirect( NEXUS_PKG_URL.'menu_items.php?menu_id='.$_REQUEST['menu_id'] ); } if( !empty( $_REQUEST['item_id'] ) ) { |
