Changeset 1517
- Timestamp:
- 12/13/2007 11:13:18 AM (10 months ago)
- Files:
-
- 1 modified
-
trunk/system/controllers/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/controllers/media.php
r1297 r1517 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, '.'); 30 25 31 // Attempt to load the resource using a view 26 echo new View( $this->uri->string());32 echo new View(substr($filename, 0, $offset), NULL, substr($filename, $offset + 1)); 27 33 } 28 34 catch (Kohana_Exception $e)
