From fcdfca7d4d64f6eea95ad7ecd65ec8ac0db239d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Pe=CC=81rez?= <jaime.perez@uninett.no> Date: Thu, 27 Oct 2016 16:08:46 +0200 Subject: [PATCH] bugfix: $langPath won't be defined if an exception is thrown by the method where we get its value from. --- lib/SimpleSAML/Locale/Localization.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/Locale/Localization.php b/lib/SimpleSAML/Locale/Localization.php index 3e231ee3a..3f7a7b101 100644 --- a/lib/SimpleSAML/Locale/Localization.php +++ b/lib/SimpleSAML/Locale/Localization.php @@ -181,7 +181,7 @@ class Localization try { $langPath = $this->getLangPath($domain); } catch (\Exception $e) { - $error = "Something wrong with path '$langPath', cannot load domain '$domain'"; + $error = "Something went wrong when trying to get path to language file, cannot load domain '$domain'."; \SimpleSAML\Logger::error($_SERVER['PHP_SELF'].' - '.$error); if ($catchException) { // bail out! -- GitLab