From dd1f034df2bb54a7e40c78d666c607acc1820c0b Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 19 Apr 2012 20:49:43 +0000 Subject: added a button to restore multiple size default sizes ... git-svn-id: http://piwigo.org/svn/trunk@14228 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/configuration.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'admin/configuration.php') diff --git a/admin/configuration.php b/admin/configuration.php index 4258c3437..c89203d4f 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -248,6 +248,12 @@ WHERE param = \''.$row['param'].'\' //------------------------------------------------------ $conf reinitialization load_conf_from_db(); } +elseif (isset($_POST['restore_settings'])) +{ + ImageStdParams::set_and_save( ImageStdParams::get_default_sizes() ); + pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param = \'disabled_derivatives\''); + clear_derivative_cache(); +} //----------------------------------------------------- template initialization $template->set_filename('config', 'configuration.tpl'); -- cgit v1.2.3