Skip to content
Snippets Groups Projects
Commit efe59c83 authored by Olav Morken's avatar Olav Morken
Browse files

SimpleSAML_XHTML_Template: Don't attempt to set language twice.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1727 44740490-163a-0410-bde0-09ae8108e29a
parent 0fd9b59b
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,9 @@ class SimpleSAML_XHTML_Template {
$this->language = $language;
// setcookie ( string $name [, string $value [, int $expire [, string $path [, string $domain [, bool $secure [, bool $httponly ]]]]]] )
// time()+60*60*24*900 expires 900 days from now.
setcookie('language', $language, time()+60*60*24*900, '/');
if (!headers_sent()) {
setcookie('language', $language, time()+60*60*24*900, '/');
}
}
/**
......
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