Changeset 3075
- Timestamp:
- 07/11/2008 12:19:58 PM (3 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Router.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Router.php
r3073 r3075 99 99 $controller_path .= $segment; 100 100 101 102 101 $found = FALSE; 103 102 foreach ($paths as $dir) … … 111 110 $found = TRUE; 112 111 113 if (is_file($dir.$controller_path.EXT)) 112 // The controller must be a file that exists with the search path 113 if ($c = str_replace('\\', '/', realpath($dir.$controller_path.EXT)) 114 AND is_file($c) AND strpos($c, $dir) === 0) 114 115 { 115 116 // Set controller name … … 117 118 118 119 // Change controller path 119 self::$controller_path = $ dir.$controller_path.EXT;120 self::$controller_path = $c; 120 121 121 122 // Set the method segment
