Skip to content
Snippets Groups Projects
Commit 4cdc6956 authored by Hanne Moa's avatar Hanne Moa
Browse files

Lower priority TODOs

parent 40e55749
No related branches found
No related tags found
No related merge requests found
...@@ -65,10 +65,12 @@ class SimpleSAML_XHTML_Template ...@@ -65,10 +65,12 @@ class SimpleSAML_XHTML_Template
if (is_null($filename)) { if (is_null($filename)) {
return false; return false;
} }
// TODO: Get cache-location from config
$cache = $this->configuration->resolvePath('cache'); $cache = $this->configuration->resolvePath('cache');
$this->template = $twig_filename; $this->template = $twig_filename;
$loader = new \Twig_Loader_Filesystem(array(dirname($filename), $this->configuration->resolvePath('templates'))); $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; return true;
} }
...@@ -90,6 +92,7 @@ class SimpleSAML_XHTML_Template ...@@ -90,6 +92,7 @@ class SimpleSAML_XHTML_Template
$languages = $this->translator->getLanguage()->getLanguageList(); $languages = $this->translator->getLanguage()->getLanguageList();
$langmap = NULL; $langmap = NULL;
if ( count($languages) > 1 ) { if ( count($languages) > 1 ) {
// TODO: this array should not be defined here
$langnames = array( $langnames = array(
'no' => 'Bokmål', // Norwegian Bokmål 'no' => 'Bokmål', // Norwegian Bokmål
'nn' => 'Nynorsk', // Norwegian Nynorsk 'nn' => 'Nynorsk', // Norwegian Nynorsk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment