Use rtrim instead of prepending DS to avoid Windows issues

This commit is contained in:
William Cahill-Manley 2012-02-20 14:52:32 -08:00
parent dd5ff5f12b
commit 6bed34fb8b
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ public static function routes($bundle)
*/ */
protected static function autoloads($bundle, $config) protected static function autoloads($bundle, $config)
{ {
$path = DS . trim(Bundle::path($bundle), DS); $path = rtrim(Bundle::path($bundle), DS);
foreach ($config['autoloads'] as $type => $mappings) foreach ($config['autoloads'] as $type => $mappings)
{ {