From 8e4b43154c22898289506d0893486e7f001d4857 Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Tue, 20 Nov 2018 16:10:05 +0000
Subject: [PATCH] Remove unused module-specific error coding.

closes: #473
---
 lib/SimpleSAML/Error/Error.php | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/lib/SimpleSAML/Error/Error.php b/lib/SimpleSAML/Error/Error.php
index 0d8d011a0..615da09c0 100644
--- a/lib/SimpleSAML/Error/Error.php
+++ b/lib/SimpleSAML/Error/Error.php
@@ -87,15 +87,8 @@ class Error extends Exception
             $this->httpCode = $httpCode;
         }
 
-        $moduleCode = explode(':', $this->errorCode, 2);
-        if (count($moduleCode) === 2) {
-            $this->module = $moduleCode[0];
-            $this->dictTitle = '{'.$this->module.':errors:title_'.$moduleCode[1].'}';
-            $this->dictDescr = '{'.$this->module.':errors:descr_'.$moduleCode[1].'}';
-        } else {
-            $this->dictTitle = ErrorCodes::getErrorCodeTitle($this->errorCode);
-            $this->dictDescr = ErrorCodes::getErrorCodeDescription($this->errorCode);
-        }
+        $this->dictTitle = ErrorCodes::getErrorCodeTitle($this->errorCode);
+        $this->dictDescr = ErrorCodes::getErrorCodeDescription($this->errorCode);
 
         if (!empty($this->parameters)) {
             $msg = $this->errorCode.'(';
-- 
GitLab