Changeset 2762
- Timestamp:
- 11/18/06 13:20:56 (2 years ago)
- Files:
-
- trunk/lib/i18n/sfI18N.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/i18n/sfI18N.class.php
r2757 r2762 70 70 if (sfConfig::get('sf_i18n_cache')) 71 71 { 72 $subdir = str_replace(str_replace('/', DIRECTORY_SEPARATOR, sfConfig::get('sf_root_dir')), '', $dir);72 $subdir = str_replace(str_replace('/', DIRECTORY_SEPARATOR, sfConfig::get('sf_root_dir')), '', $dir); 73 73 $cacheDir = str_replace('/', DIRECTORY_SEPARATOR, sfConfig::get('sf_i18n_cache_dir').$subdir); 74 75 // create cache dir if needed76 if (!is_dir($cacheDir))77 {78 $current_umask = umask(0000);79 if (!is_dir($cacheDir))80 {81 mkdir($cacheDir, 0777, true);82 }83 umask($current_umask);84 }85 74 86 75 $cache = new sfMessageCache();