Skip to content
Snippets Groups Projects
Commit 61712739 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Stop using deprecated methods from SimpleSAML_Utilities.

parent 79576e09
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,8 @@
namespace SimpleSAML\Locale;
use SimpleSAML\Utils\HTTP;
class Language
{
......@@ -119,7 +121,7 @@ class Language
*/
private function getHTTPLanguage()
{
$languageScore = \SimpleSAML_Utilities::getAcceptLanguage();
$languageScore = HTTP::getAcceptLanguage();
// for now we only use the default language map. We may use a configurable language map in the future
$languageMap = self::$defaultLanguageMap;
......@@ -245,6 +247,6 @@ class Language
'httponly' => false,
);
\SimpleSAML_Utilities::setCookie($name, $language, $params, false);
HTTP::setCookie($name, $language, $params, false);
}
}
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