From 6fb2bcef6982d1125c45f821e84fe45e16192557 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sat, 12 Feb 2022 14:18:20 +0100 Subject: [PATCH] fix config --- mdref/Repo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mdref/Repo.php b/mdref/Repo.php index 80af907..8556e49 100644 --- a/mdref/Repo.php +++ b/mdref/Repo.php @@ -65,6 +65,7 @@ class Repo implements IteratorAggregate { throw new InvalidArgumentException("Not a reference, could not find any '{mdref.*,*.mdref}': '$path'"); } + $this->path = realpath($path); foreach ($glob as $mdref) { switch (pathinfo($mdref, PATHINFO_EXTENSION)) { case "mdref": @@ -82,11 +83,10 @@ class Repo implements IteratorAggregate { $this->$key = $json->$key; } } - break; + break 2; default: throw InvalidArgumentException("Unknown $path"); } - $this->path = realpath($path); } } -- 2.30.2