### Eclipse Workspace Patch 1.0 #P moodle20 Index: lib/moodlelib.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/moodlelib.php,v retrieving revision 1.1385 diff -u -r1.1385 moodlelib.php --- lib/moodlelib.php 22 May 2010 22:37:47 -0000 1.1385 +++ lib/moodlelib.php 22 May 2010 22:43:01 -0000 @@ -5948,7 +5948,7 @@ // try on-disk cache then if ($this->usediskcache and file_exists($this->cacheroot . "/$lang/$component")) { $this->countdiskcache++; - eval('$this->cache[$lang][$component] = ' . file_get_contents($this->cacheroot . "/$lang/$component") . ';'); + include($this->cacheroot . "/$lang/$component"); return $this->cache[$lang][$component]; } @@ -6029,7 +6029,7 @@ $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", "cache['$lang']['$component'] =".var_export($string, true).";"); } return $string; }