]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-7190 fixed wrong closing ) in cache md5 calculation, sorry! merged from MOODLE_17...
authorskodak <skodak>
Wed, 25 Oct 2006 23:18:40 +0000 (23:18 +0000)
committerskodak <skodak>
Wed, 25 Oct 2006 23:18:40 +0000 (23:18 +0000)
lib/weblib.php

index 50964464033231a846c40f270b9a8dfe55f63fea..6411c255374f639a6471d41aecfa41eeb13da42a 100644 (file)
@@ -1291,7 +1291,7 @@ function format_text($text, $format=FORMAT_MOODLE, $options=NULL, $courseid=NULL
 
     if (!empty($CFG->cachetext) and empty($options->nocache)) {
         $time = time() - $CFG->cachetext;
-        $md5key = md5($text.'-'.(int)$courseid.'-'.current_language().'-'.(int)$format.(int)$options->trusttext).(int)$options->noclean.(int)$options->smiley.(int)$options->filter.(int)$options->para.(int)$options->newlines;
+        $md5key = md5($text.'-'.(int)$courseid.'-'.current_language().'-'.(int)$format.(int)$options->trusttext.(int)$options->noclean.(int)$options->smiley.(int)$options->filter.(int)$options->para.(int)$options->newlines);
         if ($oldcacheitem = get_record_sql('SELECT * FROM '.$CFG->prefix.'cache_text WHERE md5key = \''.$md5key.'\'', true)) {
             if ($oldcacheitem->timemodified >= $time) {
                 return $oldcacheitem->formattedtext;