Merge branch '4.2' into 4.3

# Conflicts:
 #	src/View/ThemeResourceLoader.php
This commit is contained in:
Robbie Averill 2019-09-13 18:10:37 -07:00
commit 066ce8e01c

View File

@ -236,10 +236,14 @@ class ThemeResourceLoader implements Flushable
foreach ($themePaths as $themePath) {
// Join path
$pathParts = [ $this->base, $themePath, 'templates', $head, $type, $tail ];
$path = Path::join($pathParts) . '.ss';
if (file_exists($path)) {
$this->getCache()->set($cacheKey, $path);
return $path;
try {
$path = Path::join($pathParts) . '.ss';
if (file_exists($path)) {
$this->getCache()->set($cacheKey, $path);
return $path;
}
} catch (InvalidArgumentException $e) {
// No-op
}
}
}