Comment out the transaction support for the menu.

This commit is contained in:
Mark Crane 2014-02-16 09:04:52 +00:00
parent eb529f8ffb
commit bf80be8d87
1 changed files with 4 additions and 5 deletions

View File

@ -59,7 +59,7 @@
} }
//begin the transaction //begin the transaction
$db->beginTransaction(); //$db->beginTransaction();
//use the app array to restore the default menu //use the app array to restore the default menu
foreach ($apps as $row) { foreach ($apps as $row) {
@ -186,7 +186,7 @@
} }
//commit the transaction //commit the transaction
$db->commit(); //$db->commit();
} //end function } //end function
//restore the menu and group permissions //restore the menu and group permissions
@ -195,7 +195,7 @@
$db = $this->db; $db = $this->db;
//begin the transaction //begin the transaction
$db->beginTransaction(); //$db->beginTransaction();
//get the $apps array from the installed apps from the core and mod directories //get the $apps array from the installed apps from the core and mod directories
$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php"); $config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
@ -206,7 +206,6 @@
} }
//use the app array to restore the default menu //use the app array to restore the default menu
//$db->beginTransaction();
foreach ($apps as $row) { foreach ($apps as $row) {
foreach ($row['menu'] as $menu) { foreach ($row['menu'] as $menu) {
//set the variables //set the variables
@ -375,7 +374,7 @@
} }
//commit the transaction //commit the transaction
$db->commit(); //$db->commit();
} //end function } //end function
//create the menu //create the menu