diff --git a/module/VuFind/src/VuFind/Config/SearchSpecsReader.php b/module/VuFind/src/VuFind/Config/SearchSpecsReader.php index b2172e98209408e88955d0bc37585c140f84b5ec..6bead32f4ed5d1f40779067ddf05fbd658bdd256 100644 --- a/module/VuFind/src/VuFind/Config/SearchSpecsReader.php +++ b/module/VuFind/src/VuFind/Config/SearchSpecsReader.php @@ -92,9 +92,10 @@ class SearchSpecsReader // Generate data if not found in cache: if ($cache === false || !($results = $cache->getItem($cacheKey))) { - $results = file_exists($fullpath) ? Yaml::parse($fullpath) : []; + $results = file_exists($fullpath) + ? Yaml::parse(file_get_contents($fullpath)) : []; if (!empty($local)) { - $localResults = Yaml::parse($local); + $localResults = Yaml::parse(file_get_contents($local)); foreach ($localResults as $key => $value) { $results[$key] = $value; }