mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-81897 tool_mobile: Coding style fix
This commit is contained in:
parent
6aa05bb847
commit
d74740e3a1
@ -77,7 +77,10 @@ if (empty($SESSION->justloggedin) &&
|
||||
|
||||
// If the user is using the inapp (embedded) browser, we need to set the Secure and Partitioned attributes to the session cookie.
|
||||
if (\core_useragent::is_moodle_app()) {
|
||||
\core\session\utility\cookie_helper::add_attributes_to_cookie_response_header('MoodleSession'.$CFG->sessioncookie, ['Secure', 'Partitioned']);
|
||||
\core\session\utility\cookie_helper::add_attributes_to_cookie_response_header(
|
||||
cookiename: "MoodleSession{$CFG->sessioncookie}",
|
||||
attributes: ['Secure', 'Partitioned'],
|
||||
);
|
||||
}
|
||||
|
||||
require_login(0, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user