Changeset 462

Show
Ignore:
Timestamp:
09/01/2007 02:35:35 PM (15 months ago)
Author:
Shadowhand
Message:

Fixed issue that would occur when exif_imagetype() didn't exist

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/View.php

    r455 r462  
    4545                        $type = $type[1]; 
    4646                        $this->kohana_filename = Kohana::find_file('views', $name, TRUE, $type); 
    47                         $this->kohana_filetype = image_type_to_mime_type(exif_imagetype($this->kohana_filename)); 
     47                         
     48                        if (function_exists('exif_imagetype')) 
     49                        { 
     50                                $this->kohana_filetype = image_type_to_mime_type(exif_imagetype($this->kohana_filename)); 
     51                        } 
     52                        else 
     53                        { 
     54                                $this->kohana_filetype = 'image/'.$type; 
     55                        } 
    4856                } 
    4957                else