diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 8849ffefaf8..4c75e15e920 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -5946,9 +5946,9 @@ class core_string_manager implements string_manager { } // try on-disk cache then - if ($this->usediskcache and file_exists($this->cacheroot . "/$lang/$component")) { + if ($this->usediskcache and file_exists($this->cacheroot . "/$lang/$component.php")) { $this->countdiskcache++; - eval('$this->cache[$lang][$component] = ' . file_get_contents($this->cacheroot . "/$lang/$component") . ';'); + include($this->cacheroot . "/$lang/$component.php"); return $this->cache[$lang][$component]; } @@ -6029,7 +6029,7 @@ class core_string_manager implements string_manager { $this->cache[$lang][$component] = $string; if ($this->usediskcache) { check_dir_exists("$this->cacheroot/$lang", true, true); - file_put_contents("$this->cacheroot/$lang/$component", var_export($string, true)); + file_put_contents("$this->cacheroot/$lang/$component.php", "cache['$lang']['$component'] = ".var_export($string, true).";"); } return $string; } diff --git a/version.php b/version.php index 617cfce4ac4..d5902a82ecb 100644 --- a/version.php +++ b/version.php @@ -6,7 +6,7 @@ // This is compared against the values stored in the database to determine // whether upgrades should be performed (see lib/db/*.php) - $version = 2010052200; // YYYYMMDD = date of the last version bump + $version = 2010052400; // YYYYMMDD = date of the last version bump // XX = daily increments $release = '2.0 Preview 2 (Build: 20100524)'; // Human-friendly version name