Skip to content

Commit

Permalink
hack for problems with concurrent use of $nomoodlecookie and capabili…
Browse files Browse the repository at this point in the history
…ties in RSS feeds, see MDL-7243 - it should be replaced once we get to codes in urls; merged from MOODLE_17_STABLE
  • Loading branch information
skodak committed Nov 1, 2006
1 parent af3e0ed commit a015506
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rss/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@

$lifetime = 3600; // Seconds for files to remain in caches - 1 hour

// hack for problems with concurrent use of $nomoodlecookie and capabilities MDL-7243
// it should be replaced once we get to codes in urls
$USER = new object();
$USER->id = 0;

// disable moodle specific debug messages
disable_debugging();

Expand Down

0 comments on commit a015506

Please sign in to comment.