Ticket #963: imagemodifier.patch

File imagemodifier.patch, 1.6 kB (added by Surfoo, 14 months ago)
  • lib/jelix/utils/jImageModifier.class.php

     
    2424     */ 
    2525    static protected $transformParams = array('width', 'height', 'maxwidth', 'maxheight', 'zoom', 'alignh', 
    2626                                           'alignv', 'ext', 'quality', 'shadow', 'scolor', 'sopacity', 'sblur', 
    27                                            'soffset', 'sangle', 'background'); 
     27                                           'soffset', 'sangle', 'background', 'omo'); 
    2828 
    2929    /** 
    3030     * params associated with html equivalent attributes 
     
    3434    static protected $attributeParams = array('alt', 'class', 'id', 'style', 'longdesc', 'name', 'ismap', 'usemap', 
    3535                                           'title', 'dir', 'lang', 'onclick', 'ondblclick', 'onmousedown', 
    3636                                           'onmouseup', 'onmouseover', 'onmousemove', 'onmouseout', 'onkeypress', 
    37                                            'onkeydown', 'onkeyup') ; 
     37                                           'onkeydown', 'onkeyup', 'width', 'height'); 
    3838 
    3939 
    4040    /** 
     
    104104        foreach($params as $key => $value) { 
    105105            if( in_array($key, jImageModifier::$transformParams)) { 
    106106                $chaine .= $key.$value; 
    107             } else { 
     107            }  
     108            if( in_array($key, jImageModifier::$attributeParams)) { 
    108109                // attribute params are just transmitted back 
    109110                $att[$key] = $value; 
    110111            }