mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-19 16:13:00 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user