diff --git a/modules/portal/lib/Portal.php b/modules/portal/lib/Portal.php
index 72effb6367a3cbd5d0e68cfe57597e8c4b07d44b..6b9ce045aff5a12b23e6d9ce7ebb6487b4be73b2 100644
--- a/modules/portal/lib/Portal.php
+++ b/modules/portal/lib/Portal.php
@@ -30,15 +30,15 @@ class sspmod_portal_Portal {
 		return FALSE;
 	}
 	
-	function getLoginInfo($t, $thispage) {
-		$info = array('info' => '', 'template' => $t, 'thispage' => $thispage);
+	function getLoginInfo($translator, $thispage) {
+		$info = array('info' => '', 'translator' => $translator, 'thispage' => $thispage);
 		SimpleSAML\Module::callHooks('portalLoginInfo', $info);
 		return $info['info'];
 	}
 	
 	function getMenu($thispage) {
 		$config = SimpleSAML_Configuration::getInstance();
-		$t = new SimpleSAML_XHTML_Template($config, 'sanitycheck:check.tpl.php');
+		$t = new SimpleSAML\Locale\Translate($config);
 		$tabset = $this->getTabset($thispage);
 		$logininfo = $this->getLoginInfo($t, $thispage);
 		$text = '';