Skip to content

Commit

Permalink
Fixed view resolver normalization issue preventing templates being fo…
Browse files Browse the repository at this point in the history
…und on Linux.

This whole thing needs refactoring and testing.
  • Loading branch information
hexus committed Nov 4, 2015
1 parent 199258e commit e7271c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Darya/View/Resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Resolver {
* @return path
*/
public static function normalise($path) {
return preg_replace('~[\\\|/]+~', '/', trim($path, '\/'));
return preg_replace('~[\\\|/]+~', '/', rtrim($path, '\/'));
}

/**
Expand Down

0 comments on commit e7271c3

Please sign in to comment.