Changeset 121 for trunk/lib/Image.inc.php
- Timestamp:
- May 22, 2006 5:29:19 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Image.inc.php
r95 r121 55 55 $src = $this->oSrc($id); 56 56 $filepath = preg_match('!://!', $src) ? $src : getenv('DOCUMENT_ROOT') . $src; 57 // Use exif_imagetype to check not only file existance but that of a valid image. 57 58 return false != @exif_imagetype($filepath); 58 59 } … … 94 95 { 95 96 $file_name = ''; 97 // filename_pattern is a sprintf argument with %s replaced with the image id. 96 98 if ($file_match = glob(sprintf("%s/{$this->_params['filename_pattern']}", $this->_params['base_path'], $id))) { 97 99 $file_name = basename(end($file_match));
Note: See TracChangeset
for help on using the changeset viewer.