MDL-81897 tool_mobile: Coding style fix

This commit is contained in:
Andrew Nicols
2024-05-28 11:44:33 +08:00
parent 19ea4c183d
commit c1aae7d366
+4 -1
View File
@@ -71,7 +71,10 @@ if (empty($service)) {
// 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);