bug 3174 fixed: avoid using load_conf_from_db, use 3rd parameter updateGlobal instead

git-svn-id: http://piwigo.org/svn/trunk@30460 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2014-11-12 13:34:53 +00:00
parent 202e20ea37
commit 0b0affdff5
2 changed files with 14 additions and 18 deletions
+2 -3
View File
@@ -14,8 +14,7 @@ if(isset($_POST['submit_elegant']))
$config_send['p_pict_descr']=(isset($_POST['p_pict_descr']) and !empty($_POST['p_pict_descr'])) ? $_POST['p_pict_descr'] : 'on';
$config_send['p_pict_comment']=(isset($_POST['p_pict_comment']) and !empty($_POST['p_pict_comment'])) ? $_POST['p_pict_comment'] : 'off';
$conf['elegant'] = serialize($config_send);
conf_update_param('elegant', pwg_db_real_escape_string($conf['elegant']));
conf_update_param('elegant', $config_send, true);
array_push($page['infos'], l10n('Information data registered in database'));
}
@@ -23,7 +22,7 @@ if(isset($_POST['submit_elegant']))
$template->set_filenames(array(
'theme_admin_content' => dirname(__FILE__) . '/admin.tpl'));
$template->assign('options', unserialize($conf['elegant']));
$template->assign('options', safe_unserialize($conf['elegant']));
$template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');