Skip to content
Snippets Groups Projects
Commit 7930d600 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

bugfix: The defaultLanguageMap property of SimpleSAML\Locale\Language is static.

Therefore, it should be accessed using self, not $this.
parent e7188f86
No related branches found
No related tags found
No related merge requests found
...@@ -333,8 +333,8 @@ class Language ...@@ -333,8 +333,8 @@ class Language
*/ */
public function getLanguageCodeAlias($langcode) public function getLanguageCodeAlias($langcode)
{ {
if (isset($this->defaultLanguageMap[$langcode])) { if (isset(self::$defaultLanguageMap[$langcode])) {
return $this->defaultLanguageMap[$langcode]; return self::$defaultLanguageMap[$langcode];
} }
// No alias found, which is fine // No alias found, which is fine
return null; return null;
......
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