[*] 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
This commit is contained in:
@@ -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
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="270" style="height: 35px;">'.$this->l('Watermark transparency (0-100)').'</td>
|
||||
<td width="270" style="height: 35px;">'.$this->l('Watermark transparency (1-100)').'</td>
|
||||
<td><input type="text" name="transparency" value="'.(float)Tools::getValue('transparency', Configuration::get('WATERMARK_TRANSPARENCY')).'" style="width: 30px;" /></td>
|
||||
</tr>
|
||||
<tr><td width="270" style="height: 35px;">'.$this->l('Watermark X align').'</td>
|
||||
|
||||
Reference in New Issue
Block a user