Changeset 6856
- Timestamp:
- Apr 30, 2008, 4:03:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE/Img.php
r6855 r6856 258 258 function create_cache($output_gdimg) 259 259 { 260 $this->create_cache_subdir( );260 $this->create_cache_subdir($this->cache_fullpath, $this->cache_dir); 261 261 $this->generator->createCache($this->cache_fullpath, $output_gdimg); 262 262 } … … 267 267 function create_cache_from_raw_img() 268 268 { 269 $this->create_cache_subdir( );269 $this->create_cache_subdir($this->cache_fullpath, $this->cache_dir); 270 270 $this->generator->createCacheFromRawImage($this->cache_fullpath, $this->raw_img); 271 271 } … … 275 275 * @access protected 276 276 */ 277 function create_cache_subdir( )278 { 279 $subdir = dirname($ this->cache_fullpath);277 function create_cache_subdir($cache_fullpath, $cache_dir) 278 { 279 $subdir = dirname($cache_fullpath); 280 280 if (!is_dir($subdir)) { 281 281 // mkdir recursive 282 $_dir = $ this->cache_dir;282 $_dir = $cache_dir; 283 283 if (!is_dir($_dir) && !mkdir($_dir)) { 284 284 return false; 285 285 } 286 $relative_path = substr($subdir, strlen($ this->cache_dir)+1);286 $relative_path = substr($subdir, strlen($cache_dir)+1); 287 287 $parts = explode('/', $relative_path); 288 288 foreach ($parts as $part) {
Note: See TracChangeset
for help on using the changeset viewer.