Skip to content
Snippets Groups Projects
Commit 55d2aa3e authored by Guy Halse's avatar Guy Halse
Browse files

Handle untranslated tabs more gracefully

parent 7a7e04f3
No related branches found
No related tags found
No related merge requests found
......@@ -281,6 +281,9 @@ class PowerIdPDisco extends \SimpleSAML\XHTML\IdPDisco
$t->data['rememberchecked'] = $this->config->getBoolean('idpdisco.rememberchecked', false);
$t->data['jquery'] = ['core' => true, 'ui' => true];
foreach(array_keys($idpList) as $tab) {
if ($t->getTag('{discopower:tabs:' . $tab . '}') === null) {
$t->includeInlineTranslation('{discopower:tabs:'. $tab. '}', $tab);
}
$t->data['tabNames'][$tab] = \SimpleSAML\Locale\Translate::noop('{discopower:tabs:' . $tab . '}');
}
$t->show();
......
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