From e7271c3f7166ce7784e3b3095c44e82d5e5de521 Mon Sep 17 00:00:00 2001 From: Chris Andrew Date: Wed, 4 Nov 2015 01:21:33 +0000 Subject: [PATCH] Fixed view resolver normalization issue preventing templates being found on Linux. This whole thing needs refactoring and testing. --- src/Darya/View/Resolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Darya/View/Resolver.php b/src/Darya/View/Resolver.php index 56bfe55..7c9bcb8 100644 --- a/src/Darya/View/Resolver.php +++ b/src/Darya/View/Resolver.php @@ -49,7 +49,7 @@ class Resolver { * @return path */ public static function normalise($path) { - return preg_replace('~[\\\|/]+~', '/', trim($path, '\/')); + return preg_replace('~[\\\|/]+~', '/', rtrim($path, '\/')); } /**