diff options
author | Hanne Moa <hanne.moa@uninett.no> | 2016-09-15 14:11:31 +0200 |
---|---|---|
committer | Hanne Moa <hanne.moa@uninett.no> | 2016-09-16 11:25:04 +0200 |
commit | 15ad1d9abd67e6cf1f9bcd4004f1c06edb949908 (patch) | |
tree | 2cab34432ea2bf140f13b85b2bd1834b4d6a8293 /lib/SimpleSAML/Error/Error.php | |
parent | e0c6d99e1f8beb6150f98b3514ad691365eaf920 (diff) | |
download | simplesamlphp-15ad1d9abd67e6cf1f9bcd4004f1c06edb949908.zip simplesamlphp-15ad1d9abd67e6cf1f9bcd4004f1c06edb949908.tar.gz simplesamlphp-15ad1d9abd67e6cf1f9bcd4004f1c06edb949908.tar.bz2 |
Add a map from error codes to titles/descriptions
Diffstat (limited to 'lib/SimpleSAML/Error/Error.php')
-rw-r--r-- | lib/SimpleSAML/Error/Error.php | 4 |
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)) { |