Update template hierarchy

All sage/filter_templates/paths have now higher priority than stand-alone template files. Fixes #1979
This commit is contained in:
Dawid Gaweł
2017-10-19 12:59:24 +02:00
committed by GitHub
parent b4421be269
commit 3f9d31c19a

View File

@@ -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()