From 4cdc6956bdc40e4cc37288c47e6ce11e137937e1 Mon Sep 17 00:00:00 2001
From: Hanne Moa <hanne.moa@uninett.no>
Date: Fri, 26 Feb 2016 14:44:34 +0100
Subject: [PATCH] Lower priority TODOs

---
 lib/SimpleSAML/XHTML/Template.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php
index b67758982..fabaf157e 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -65,10 +65,12 @@ class SimpleSAML_XHTML_Template
         if (is_null($filename)) {
             return false;
         }
+        // TODO: Get cache-location from config
         $cache = $this->configuration->resolvePath('cache');
         $this->template = $twig_filename;
         $loader = new \Twig_Loader_Filesystem(array(dirname($filename), $this->configuration->resolvePath('templates')));
-        $this->twig = new \Twig_Environment($loader, array('cache' => $cache));
+        $auto_reload = true; // TODO: set this in config
+        $this->twig = new \Twig_Environment($loader, array('cache' => $cache, 'dauto_reload' => $auto_reload));
         return true;
     }
 
@@ -90,6 +92,7 @@ class SimpleSAML_XHTML_Template
         $languages = $this->translator->getLanguage()->getLanguageList();
         $langmap = NULL;
         if ( count($languages) > 1 ) {
+            // TODO: this array should not be defined here
             $langnames = array(
                 'no' => 'BokmĂĄl', // Norwegian BokmĂĄl
                 'nn' => 'Nynorsk', // Norwegian Nynorsk
-- 
GitLab