diff options
author | rvelices <rv-github@modusoptimus.com> | 2012-08-01 19:03:17 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2012-08-01 19:03:17 +0000 |
commit | 92049de0752eca069cb0dbe97ea5d61406ce0a32 (patch) | |
tree | 4d47721538ab63c5fe0df510b2dfb839af735fb8 /admin/include/configuration_sizes_process.inc.php | |
parent | 56a395e3a4bde205e81053c40efc8e028ada5595 (diff) |
merge-r17295 from branch 2.4 feature 2708: in admin, display allowed custom derivatives and ability to delete them
git-svn-id: http://piwigo.org/svn/trunk@17302 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/configuration_sizes_process.inc.php')
-rw-r--r-- | admin/include/configuration_sizes_process.inc.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/admin/include/configuration_sizes_process.inc.php b/admin/include/configuration_sizes_process.inc.php index 31153f16b..d748a61e4 100644 --- a/admin/include/configuration_sizes_process.inc.php +++ b/admin/include/configuration_sizes_process.inc.php @@ -228,6 +228,15 @@ if (count($errors) == 0) } } + foreach( array_keys(ImageStdParams::$custom) as $custom) + { + if (isset($_POST['delete_custom_derivative_'.$custom])) + { + $changed_types[] = $custom; + unset(ImageStdParams::$custom[$custom]); + } + } + ImageStdParams::set_and_save($enabled_by); if (count($disabled) == 0) { |