Changeset 3879

Show
Ignore:
Timestamp:
06/15/06 21:28:08 (3 years ago)
Author:
ryan
Message:

Unlink TinySpell?? tmp files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/js/tinymce/plugins/spellchecker/classes/TinyPspellShell.class.php

    r3664 r3879  
    2828 
    2929        $this->tmpfile = tempnam($config['tinypspellshell.tmp'], "tinyspell"); 
    30       $this->cmd = "cat ". $this->tmpfile ." | " . $config['tinypspellshell.aspell'] . " -a --lang=". $this->lang; 
     30      $this->cmd = "cat ". $this->tmpfile ." | " . $config['tinypspellshell.aspell'] . " -a --lang=". $this->lang; 
    3131    } 
    3232 
     
    4545 
    4646        $data = shell_exec($this->cmd); 
     47        @unlink($this->tmpfile); 
    4748        $returnData = array(); 
    4849        $dataArr = preg_split("/\n/", $data, -1, PREG_SPLIT_NO_EMPTY); 
     
    7475 
    7576        $data = shell_exec($this->cmd); 
     77        @unlink($this->tmpfile); 
    7678        $returnData = array(); 
    7779        $dataArr = preg_split("/\n/", $data, -1, PREG_SPLIT_NO_EMPTY);