From c308fcc34c0fdce1b9e80ba892b7a3eaf5d74f35 Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Tue, 5 Jan 2016 14:53:33 +0200 Subject: [PATCH] Pass file contents to Yaml::parse() since passing a file name is deprecated. --- module/VuFind/src/VuFind/Config/SearchSpecsReader.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Config/SearchSpecsReader.php b/module/VuFind/src/VuFind/Config/SearchSpecsReader.php index b2172e98209..6bead32f4ed 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; } -- GitLab