From 3f9d31c19ab72f9134d2730bfff8d5cb1e3256b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Gawe=C5=82?= Date: Thu, 19 Oct 2017 12:59:24 +0200 Subject: [PATCH] Update template hierarchy All sage/filter_templates/paths have now higher priority than stand-alone template files. Fixes #1979 --- app/helpers.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/helpers.php b/app/helpers.php index 71f4e24..d5d5446 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -109,10 +109,12 @@ function filter_templates($templates) return [ "{$path}/{$template}.blade.php", "{$path}/{$template}.php", - "{$template}.blade.php", - "{$template}.php", ]; - }); + }) + ->concat([ + "{$template}.blade.php", + "{$template}.php", + ]); }) ->filter() ->unique()