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

Fix static calls to non-static getLanguage()

parent 14cbfaf4
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,7 @@ foreach ($metaentries['remote'] as $key => $value) { ...@@ -96,7 +96,7 @@ foreach ($metaentries['remote'] as $key => $value) {
$t = new \SimpleSAML\XHTML\Template($config, 'core:frontpage_federation.tpl.php'); $t = new \SimpleSAML\XHTML\Template($config, 'core:frontpage_federation.tpl.php');
$language = \SimpleSAML\Locale\Language::getLanguage(); $language = $t->getTranslator()->getLanguage()->getLanguage();
$defaultLanguage = $config->getString('language.default', 'en'); $defaultLanguage = $config->getString('language.default', 'en');
$translators = array( $translators = array(
......
...@@ -51,7 +51,7 @@ $globalConfig = \SimpleSAML\Configuration::getInstance(); ...@@ -51,7 +51,7 @@ $globalConfig = \SimpleSAML\Configuration::getInstance();
$t = new \SimpleSAML\XHTML\Template($globalConfig, 'multiauth:selectsource.php'); $t = new \SimpleSAML\XHTML\Template($globalConfig, 'multiauth:selectsource.php');
$defaultLanguage = $globalConfig->getString('language.default', 'en'); $defaultLanguage = $globalConfig->getString('language.default', 'en');
$language = \SimpleSAML\Locale\Language::getLanguage(); $language = $t->getTranslator()->getLanguage()->getLanguage();
$sources = $state[\SimpleSAML\Module\multiauth\Auth\Source\MultiAuth::SOURCESID]; $sources = $state[\SimpleSAML\Module\multiauth\Auth\Source\MultiAuth::SOURCESID];
foreach ($sources as $key => $source){ foreach ($sources as $key => $source){
......
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