MDL-14679 converted some delete_records

This commit is contained in:
skodak
2008-06-02 21:52:27 +00:00
parent c7da43571b
commit 8618fd2aeb
11 changed files with 20 additions and 22 deletions
+2 -2
View File
@@ -1583,9 +1583,9 @@ function text_format_name( $key ) {
* @return void
*/
function reset_text_filters_cache() {
global $CFG;
global $CFG, $DB;
delete_records('cache_text');
$DB->delete_records('cache_text');
$purifdir = $CFG->dataroot.'/cache/htmlpurifier';
remove_dir($purifdir, true);
}