summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/Error/Error.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SimpleSAML/Error/Error.php')
-rw-r--r--lib/SimpleSAML/Error/Error.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/SimpleSAML/Error/Error.php b/lib/SimpleSAML/Error/Error.php
index 542c35b..0e26bf5 100644
--- a/lib/SimpleSAML/Error/Error.php
+++ b/lib/SimpleSAML/Error/Error.php
@@ -100,8 +100,8 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
$this->dictTitle = '{'.$this->module.':errors:title_'.$moduleCode[1].'}';
$this->dictDescr = '{'.$this->module.':errors:descr_'.$moduleCode[1].'}';
} else {
- $this->dictTitle = '{errors:title_'.$this->errorCode.'}';
- $this->dictDescr = '{errors:descr_'.$this->errorCode.'}';
+ $this->dictTitle = SimpleSAML\Error\ErrorCodes::getErrorCodeTitle($this->errorCode);
+ $this->dictDescr = SimpleSAML\Error\ErrorCodes::getErrorCodeDescription($this->errorCode);
}
if (!empty($this->parameters)) {