Changeset 240 for trunk

Show
Ignore:
Timestamp:
08/02/06 03:21:48 (6 years ago)
Author:
john
Message:

added to url helper the options height and width to link_image_to()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/action_view/helpers/url_helper.php

    r239 r240  
    167167            $image_options["height"] = end(explode("x", $html_options["size"])); 
    168168            unset($html_options["size"]); 
     169        } else { 
     170            if(isset($html_options["width"])) { 
     171                $image_options["width"] = $html_options["width"]; 
     172                unset($html_options["width"]);             
     173            } elseif(isset($html_options["height"])) { 
     174                $image_options["height"] = $html_options["height"]; 
     175                unset($html_options["height"]);             
     176            } 
    169177        }  
    170178