From: moodler Date: Tue, 10 Feb 2004 10:01:42 +0000 (+0000) Subject: Multi-lang filter can flag a text as not being cacheable X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=eea2335afe243d83357df75e4f1456b367f8b529;p=moodle.git Multi-lang filter can flag a text as not being cacheable --- diff --git a/filter/multilang/multilang.php b/filter/multilang/multilang.php index 396cf98ae3..b5cb3d4471 100644 --- a/filter/multilang/multilang.php +++ b/filter/multilang/multilang.php @@ -48,6 +48,8 @@ if (function_exists($textfilter_function)) { function multilang_filter($courseid, $text) { + global $CFG; + /// Make sure XML is enabled in this PHP if (!function_exists('xml_parser_create')) { return $text; @@ -58,6 +60,9 @@ function multilang_filter($courseid, $text) { return $text; } +/// Flag this text as something not to cache + $CFG->currenttextiscacheable = false; + /// Get current language $currentlanguage = current_language();