From f609411ba0ffa916174d8a96c18b0f1d980a40e9 Mon Sep 17 00:00:00 2001 From: patdenice Date: Fri, 31 Jul 2009 14:59:31 +0000 Subject: merge r3711 from trunk to branch 2.0 Disable database optimization for menubar order until it has been fixed. git-svn-id: http://piwigo.org/svn/branches/2.0@3712 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/menubar.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/menubar.php b/admin/menubar.php index 17b90607d..c717cf0da 100644 --- a/admin/menubar.php +++ b/admin/menubar.php @@ -99,6 +99,7 @@ if ( isset($_POST['submit']) and !is_adviser() ) make_consecutive( $mb_conf ); // BEGIN OPTIM - DONT ASK ABOUT THIS ALGO - but optimizes the size of the array we save in DB + /* !!! OPTIM DISABLED UNTIL IT HAS BEEN FIXED !!! $reg_keys = array_keys($reg_blocks); $cnf_keys = array_keys($mb_conf); $best_slice = array( 'len'=>0 ); @@ -121,7 +122,9 @@ if ( isset($_POST['submit']) and !is_adviser() ) } } } + */ $mb_conf_db = $mb_conf; + /* if ($best_slice['len']) { for ($j=0; $j<$best_slice['start_cnf']; $j++ ) @@ -137,7 +140,7 @@ if ( isset($_POST['submit']) and !is_adviser() ) } //var_export( $best_slice ); var_export($mb_conf); var_export($mb_conf_db); // END OPTIM - + */ $query = ' UPDATE '.CONFIG_TABLE.' SET value="'.addslashes(serialize($mb_conf_db)).'" -- cgit v1.2.3