From dea2cd4e7cbd1d422d3a247bcd1fd00a1a6111f9 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Sat, 4 Sep 2021 23:16:03 +0200
Subject: [PATCH] Fix build

---
 modules/admin/lib/Controller/Test.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/admin/lib/Controller/Test.php b/modules/admin/lib/Controller/Test.php
index c88646f5b..5441a9715 100644
--- a/modules/admin/lib/Controller/Test.php
+++ b/modules/admin/lib/Controller/Test.php
@@ -254,12 +254,12 @@ class Test
                             if (!($elem->localName === 'NameID' && $elem->namespaceURI === Constants::NS_SAML)) {
                                 continue;
                             }
-                            $str .= $this->presentEptid($trans, new NameID($elem));
+                            $str .= $this->presentEptid($t->getTranslator(), new NameID($elem));
                             break; // we only support one NameID here
                         }
                         $str .= '</td></tr>';
                     } elseif (is_a($value[0], '\SAML2\XML\saml\NameID')) {
-                        $str .= $this->presentEptid($trans, $value[0]);
+                        $str .= $this->presentEptid($t->getTranslator(), $value[0]);
                         $str .= '</td></tr>';
                     } else {
                         $str .= '<td class="attrvalue">' . htmlspecialchars($value[0]) . '</td></tr>';
-- 
GitLab