Changeset 2424
- Timestamp:
- 04/04/08 15:21:54 (5 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/drivers/Cache/Sqlite.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/drivers/Cache/Sqlite.php
r2007 r2424 32 32 public function __construct($filename) 33 33 { 34 // Find the real path to the directory35 $ filename = str_replace('\\', '/', realpath($filename));36 37 // Get the filename from the directory38 $ directory = substr($filename, 0, strrpos($filename, '/') + 1);34 // Get the directory name 35 $directory = str_replace('\\', '/', realpath(pathinfo($filename, PATHINFO_DIRNAME))).'/'; 36 37 // Set the filename from the real directory path 38 $filename = $directory.basename($filename); 39 39 40 40 // Make sure the cache directory is writable
