]> git.mjollnir.org Git - moodle.git/commitdiff
Multi-lang filter can flag a text as not being cacheable
authormoodler <moodler>
Tue, 10 Feb 2004 10:01:42 +0000 (10:01 +0000)
committermoodler <moodler>
Tue, 10 Feb 2004 10:01:42 +0000 (10:01 +0000)
filter/multilang/multilang.php

index 396cf98ae31141b4400b3854750d241d11c70023..b5cb3d44717e2be0ae6f92848df0def83ad4aa76 100644 (file)
@@ -48,6 +48,8 @@ if (function_exists($textfilter_function)) {
 \r
 function multilang_filter($courseid, $text) {\r
 \r
+    global $CFG;\r
+\r
 /// Make sure XML is enabled in this PHP\r
     if (!function_exists('xml_parser_create')) {\r
         return $text;\r
@@ -58,6 +60,9 @@ function multilang_filter($courseid, $text) {
         return $text;\r
     }\r
 \r
+/// Flag this text as something not to cache\r
+    $CFG->currenttextiscacheable = false;\r
+\r
 /// Get current language\r
     $currentlanguage = current_language();\r
 \r