Removed undefined variable in App::core, made test pass on Windows. #52

Closed
wants to merge 1 commit into
from
View
4 lib/Cake/Core/App.php
@@ -389,9 +389,7 @@ public static function themePath($theme) {
* @return string full path to package
*/
public static function core($type) {
- if ($type) {
- return isset($paths[$type]) ? $paths[$type] : array(LIBS . $type . DS);
- }
+ return array(LIBS . str_replace('/', DS, $type) . DS);
}
/**