Changeset 234 for trunk/trax/vendor

Show
Ignore:
Timestamp:
08/01/06 23:06:08 (6 years ago)
Author:
john
Message:

changed link_image_to options to accept width and height

Files:
1 modified

Legend:

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

    r228 r234  
    167167            $image_options["height"] = end(explode("x", $html_options["size"])); 
    168168            unset($html_options["size"]); 
    169         } 
    170  
     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            } 
     177        } 
     178         
    171179        if (isset($html_options["border"])) { 
    172180            $image_options["border"] = $html_options["border"];