mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-19 16:13:00 +02:00
added a button to restore multiple size default sizes ...
git-svn-id: http://piwigo.org/svn/trunk@14228 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user