aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/configuration_watermark_process.inc.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/admin/include/configuration_watermark_process.inc.php b/admin/include/configuration_watermark_process.inc.php
index 5440493a6..71f8c9f29 100644
--- a/admin/include/configuration_watermark_process.inc.php
+++ b/admin/include/configuration_watermark_process.inc.php
@@ -133,10 +133,9 @@ if (count($errors) == 0)
ImageStdParams::set_watermark($watermark);
// do we have to regenerate the derivatives (and which types)?
- $types = ImageStdParams::get_defined_type_map();
$changed_types = array();
- foreach ($types as $type => $params)
+ foreach (ImageStdParams::get_defined_type_map() as $type => $params)
{
$old_use_watermark = $params->use_watermark;
ImageStdParams::apply_global($params);
@@ -146,11 +145,10 @@ if (count($errors) == 0)
{
$params->last_mod_time = time();
$changed_types[] = $type;
- $types[$type] = $params;
}
}
- ImageStdParams::set_and_save($types);
+ ImageStdParams::save();
if (count($changed_types))
{