From a506502b1b0acba2a3198fb4e862548a3c17a3df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no>
Date: Tue, 4 Jul 2017 16:25:14 +0200
Subject: [PATCH] Remove the 'templateInit' hook.

An alternative way to inject data in the templates should be used. This has a terrible impact in performance, and could have undesired side effects.
---
 lib/SimpleSAML/XHTML/Template.php | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php
index 19edb5650..4948c1798 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -95,7 +95,6 @@ class SimpleSAML_XHTML_Template
         $this->translator = new SimpleSAML\Locale\Translate($configuration, $defaultDictionary);
         $this->localization = new \SimpleSAML\Locale\Localization($configuration);
         $this->twig = $this->setupTwig();
-        SimpleSAML\Module::callHooks('templateInit', $this->data);
     }
 
 
-- 
GitLab