From 18ab409eeb675d230e4989765ac468c56000b705 Mon Sep 17 00:00:00 2001 From: PhpMadman Date: Fri, 4 Oct 2013 10:38:03 +0200 Subject: [PATCH] [*] BO: #PNM-1472 Changed label and transparency range check to 1 Changed label to 1-100 since, there is no need to set transparency to 0, since it will pretty much will be invisible already at 1 --- modules/watermark/watermark.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/watermark/watermark.php b/modules/watermark/watermark.php index 9e396006a..b395dfb54 100644 --- a/modules/watermark/watermark.php +++ b/modules/watermark/watermark.php @@ -97,7 +97,7 @@ class Watermark extends Module if (empty($transparency)) $this->_postErrors[] = $this->l('Transparency required.'); - elseif ($transparency < 0 || $transparency > 100) + elseif ($transparency < 1 || $transparency > 100) $this->_postErrors[] = $this->l('Transparency is not in allowed range.'); if (empty($yalign)) @@ -174,7 +174,7 @@ class Watermark extends Module - '.$this->l('Watermark transparency (0-100)').' + '.$this->l('Watermark transparency (1-100)').' '.$this->l('Watermark X align').'