Skip to content

Commit

Permalink
Add NO_MOODLE_COOKIES to styles.php
Browse files Browse the repository at this point in the history
styles.php never uses the Moodle session, so doesn't need to initialise
the session or get a session lock.
  • Loading branch information
marxjohnson committed Apr 22, 2024
1 parent 6c6950b commit e80effb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit e80effb

Please sign in to comment.