aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/derivative_std_params.inc.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/derivative_std_params.inc.php b/include/derivative_std_params.inc.php
index e1a15c882..6e0f119e3 100644
--- a/include/derivative_std_params.inc.php
+++ b/include/derivative_std_params.inc.php
@@ -164,12 +164,9 @@ final class ImageStdParams
static function apply_global($params)
{
- if (!empty(self::$watermark->file) &&
+ $params->use_watermark = !empty(self::$watermark->file) &&
(self::$watermark->min_size[0]<=$params->sizing->ideal_size[0]
- && self::$watermark->min_size[1]<=$params->sizing->ideal_size[1] ) )
- {
- $params->use_watermark = true;
- }
+ && self::$watermark->min_size[1]<=$params->sizing->ideal_size[1] );
}
private static function build_maps()