Changeset 1518
- Timestamp:
- 12/13/2007 11:28:00 AM (10 months ago)
- Files:
-
- 1 modified
-
trunk/system/controllers/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/controllers/media.php
r1517 r1518 23 23 try 24 24 { 25 // Find the full filename 26 $filename = $this->uri->string(); 27 28 // Find the offset of the extension 29 $offset = strrpos($filename, '.'); 25 // Find the filename and extension based on the URI 26 list ($file, $type) = preg_split('/\.(?=[^.]+$)/', $this->uri->string()); 30 27 31 28 // Attempt to load the resource using a view 32 echo new View( substr($filename, 0, $offset), NULL, substr($filename, $offset + 1));29 echo new View($file, NULL, $type); 33 30 } 34 31 catch (Kohana_Exception $e)
