Changeset 1207
- Timestamp:
- 11/01/06 23:41:45 (2 years ago)
- Location:
- trunk/src
- Files:
-
- 3 modified
-
config/AgaviConfigCache.class.php (modified) (1 diff)
-
config/AgaviConfigHandlersConfigHandler.class.php (modified) (1 diff)
-
util/AgaviToolkit.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/config/AgaviConfigCache.class.php
r1198 r1207 124 124 public static function checkConfig($config, $context = null) 125 125 { 126 $config = AgaviToolkit::normalizePath($config); 126 127 // the full filename path to the config, which might not be what we were given. 127 $filename = AgaviToolkit::isPathAbsolute($config) ? $config : Agavi Config::get('core.app_dir') . '/' . $config;128 $filename = AgaviToolkit::isPathAbsolute($config) ? $config : AgaviToolkit::normalizePath(AgaviConfig::get('core.app_dir')) . '/' . $config; 128 129 129 130 if(!is_readable($filename)) { -
trunk/src/config/AgaviConfigHandlersConfigHandler.class.php
r1199 r1207 59 59 $pattern = $handler->getAttribute('pattern'); 60 60 61 $category = var_export( $this->replaceConstants($pattern), true);61 $category = var_export(AgaviToolkit::normalizePath($this->replaceConstants($pattern)), true); 62 62 63 63 $class = $handler->getAttribute('class'); -
trunk/src/util/AgaviToolkit.class.php
r1180 r1207 53 53 54 54 return false; 55 } 56 57 /** 58 * Normalizes a path to contain only '/' as path delimiter. 59 * 60 * @param string The path to normalize. 61 * 62 * @return string The unified bool The mkdir return value. 63 * 64 * @author Dominik del Bondio <ddb@bitxtender.com> 65 * @since 0.11.0 66 */ 67 public static function normalizePath($path) 68 { 69 return str_replace('\\', '/', $path); 55 70 } 56 71

