Skip to content

Commit e7271c3

Browse files
committed
Fixed view resolver normalization issue preventing templates being found on Linux.
This whole thing needs refactoring and testing.
1 parent 199258e commit e7271c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Darya/View/Resolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Resolver {
4949
* @return path
5050
*/
5151
public static function normalise($path) {
52-
return preg_replace('~[\\\|/]+~', '/', trim($path, '\/'));
52+
return preg_replace('~[\\\|/]+~', '/', rtrim($path, '\/'));
5353
}
5454

5555
/**

0 commit comments

Comments
 (0)