aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-07-31 14:57:24 +0000
committerpatdenice <patdenice@piwigo.org>2009-07-31 14:57:24 +0000
commit58681f73d4921a420b0427831ddeb44975a38141 (patch)
tree5f6addd89e458ec3a7e1dad09e566bb3933de94e
parent5f1a286e08ca199bcb41e50db36ef539486615f8 (diff)
Disable database optimization for menubar order until it has been fixed.
git-svn-id: http://piwigo.org/svn/trunk@3711 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/menubar.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/admin/menubar.php b/admin/menubar.php
index 67589fddf..f6ebeab98 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)).'"