aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/configuration_sizes_process.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-08-01 19:00:54 +0000
committerrvelices <rv-github@modusoptimus.com>2012-08-01 19:00:54 +0000
commit5bc53c4d746391fcfe4fb0ea82ad88b4794e185e (patch)
tree52c86db9958fc36f100ee46c3c1eb1333230923b /admin/include/configuration_sizes_process.inc.php
parent4b181b746fa3660f63de96373caf66686cc470b4 (diff)
feature 2708: in admin, display allowed custom derivatives and ability to delete them
git-svn-id: http://piwigo.org/svn/branches/2.4@17295 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/configuration_sizes_process.inc.php')
-rw-r--r--admin/include/configuration_sizes_process.inc.php9
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)
{