Skip to content
Snippets Groups Projects
Commit 8e4b4315 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Remove unused module-specific error coding.

closes: #473
parent 67b255bb
No related branches found
No related tags found
No related merge requests found
...@@ -87,15 +87,8 @@ class Error extends Exception ...@@ -87,15 +87,8 @@ class Error extends Exception
$this->httpCode = $httpCode; $this->httpCode = $httpCode;
} }
$moduleCode = explode(':', $this->errorCode, 2); $this->dictTitle = ErrorCodes::getErrorCodeTitle($this->errorCode);
if (count($moduleCode) === 2) { $this->dictDescr = ErrorCodes::getErrorCodeDescription($this->errorCode);
$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);
}
if (!empty($this->parameters)) { if (!empty($this->parameters)) {
$msg = $this->errorCode.'('; $msg = $this->errorCode.'(';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment