diff --git a/module/VuFindTheme/src/VuFindTheme/View/Helper/AssetPipeline.php b/module/VuFindTheme/src/VuFindTheme/View/Helper/AssetPipeline.php index 16fe5e42de0..6a8bde6a03a 100644 --- a/module/VuFindTheme/src/VuFindTheme/View/Helper/AssetPipeline.php +++ b/module/VuFindTheme/src/VuFindTheme/View/Helper/AssetPipeline.php @@ -96,7 +96,7 @@ public function __construct( * * @return bool */ - protected function isPipelineActive(): bool + protected function isPipelineAvailable(): bool { try { $cacheDir = $this->getResourceCacheDir(); @@ -108,6 +108,7 @@ protected function isPipelineActive(): bool $this->logError("Cannot write to $cacheDir; disabling asset pipeline."); return false; } + return true; } /** @@ -655,7 +656,7 @@ protected function processGroupedAssets(array $groups, string $type): array */ protected function processForPipeline(array $assets, string $type): array { - if (!$this->isPipelineEnabledForType($type) || !$this->isPipelineActive()) { + if (!$this->isPipelineEnabledForType($type) || !$this->isPipelineAvailable()) { return $assets; }