From: skodak Date: Wed, 1 Nov 2006 21:03:09 +0000 (+0000) Subject: hack for problems with concurrent use of $nomoodlecookie and capabilities in RSS... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a015506a14e814ef2612b851da73c82fa2d7320f;p=moodle.git hack for problems with concurrent use of $nomoodlecookie and capabilities in RSS feeds, see MDL-7243 - it should be replaced once we get to codes in urls; merged from MOODLE_17_STABLE --- diff --git a/rss/file.php b/rss/file.php index 15bae41e62..a110e87bf2 100644 --- a/rss/file.php +++ b/rss/file.php @@ -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();