From e80effb96b18773f3630a568579e18fcbe579947 Mon Sep 17 00:00:00 2001 From: Mark Johnson Date: Mon, 22 Apr 2024 14:16:53 +0100 Subject: [PATCH] Add NO_MOODLE_COOKIES to styles.php styles.php never uses the Moodle session, so doesn't need to initialise the session or get a session lock. --- styles.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/styles.php b/styles.php index bd763cd..27804a0 100644 --- a/styles.php +++ b/styles.php @@ -22,6 +22,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +define('NO_MOODLE_COOKIES', true); + // Require_login is not needed here. // phpcs:disable moodle.Files.RequireLogin.Missing require_once('../../../config.php');