aboutsummaryrefslogtreecommitdiffstats
path: root/admin/configuration.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-04-21 10:56:51 +0000
committerplegall <plg@piwigo.org>2012-04-21 10:56:51 +0000
commitd3c6983b359f08254cf090f97f0807038043db0f (patch)
tree8d8043064d1eebb859b8347b9b3deb2ea874e697 /admin/configuration.php
parenta2ea98d748a55d82600c5cd7f21b4a83cf59bbcc (diff)
feature 2606: (multiple size config screen redesign) turn the "restore" button
in a "reset to default values" link in the "Multiple size" fieldset. git-svn-id: http://piwigo.org/svn/trunk@14251 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/configuration.php')
-rw-r--r--admin/configuration.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index c89203d4f..0de99e40f 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -248,11 +248,18 @@ WHERE param = \''.$row['param'].'\'
//------------------------------------------------------ $conf reinitialization
load_conf_from_db();
}
-elseif (isset($_POST['restore_settings']))
+
+// restore default derivatives settings
+if ('sizes' == $page['section'] and isset($_GET['action']) and 'restore_settings' == $_GET['action'])
{
ImageStdParams::set_and_save( ImageStdParams::get_default_sizes() );
pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param = \'disabled_derivatives\'');
clear_derivative_cache();
+
+ array_push(
+ $page['infos'],
+ l10n('Your configuration settings are saved')
+ );
}
//----------------------------------------------------- template initialization