Skip to content

Commit

Permalink
MDL-14679 towards filters conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 2, 2008
1 parent 82a5323 commit b402e13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion filter/tex/filter.php
Expand Up @@ -149,7 +149,7 @@ function tex_filter ($courseid, $text) {
$texcache->filter = 'tex';
$texcache->version = 1;
$texcache->md5key = $md5;
$texcache->rawtext = addslashes($texexp);
$texcache->rawtext = $texexp;
$texcache->timemodified = time();
$DB->insert_record("cache_filters",$texcache, false);
}
Expand Down
2 changes: 1 addition & 1 deletion filter/tex/pix.php
Expand Up @@ -41,7 +41,7 @@

if (!file_exists($pathname)) {
$md5 = str_replace('.gif','',$image);
if ($texcache = get_record('cache_filters', 'filter', 'tex', 'md5key', $md5)) {
if ($texcache = $DB->get_record('cache_filters', array('filter'=>'tex', 'md5key'=>$md5))) {
if (!file_exists($CFG->dataroot.'/filter/tex')) {
make_upload_directory('filter/tex');
}
Expand Down
2 changes: 1 addition & 1 deletion filter/tex/texdebug.php
Expand Up @@ -30,7 +30,7 @@
// look up in cache if required
if ($action=='ShowDB' or $action=='DeleteDB') {
$md5 = md5($texexp);
$texcache = get_record("cache_filters","filter","tex", "md5key", $md5);
$texcache = $DB->get_record("cache_filters", array("filter"=>"tex", "md5key"=>$md5));
}

// Action: Show DB Entry
Expand Down

0 comments on commit b402e13

Please sign in to comment.