diff options
author | Hanne Moa <hanne.moa@uninett.no> | 2016-02-26 14:44:34 +0100 |
---|---|---|
committer | Hanne Moa <hanne.moa@uninett.no> | 2016-02-26 14:44:34 +0100 |
commit | 4cdc6956bdc40e4cc37288c47e6ce11e137937e1 (patch) | |
tree | 4669e96b581ed9149f500ef67cdca981e45cc725 /lib/SimpleSAML/XHTML | |
parent | 40e557494d16962f09595bfa476fe8394516459a (diff) | |
download | simplesamlphp-4cdc6956bdc40e4cc37288c47e6ce11e137937e1.zip simplesamlphp-4cdc6956bdc40e4cc37288c47e6ce11e137937e1.tar.gz simplesamlphp-4cdc6956bdc40e4cc37288c47e6ce11e137937e1.tar.bz2 |
Lower priority TODOs
Diffstat (limited to 'lib/SimpleSAML/XHTML')
-rw-r--r-- | lib/SimpleSAML/XHTML/Template.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php index b677589..fabaf15 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 |