Unlink TinySpell? tmp files
git-svn-id: https://develop.svn.wordpress.org/trunk@3879 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
718e9ebd27
commit
92b23838c8
|
@ -44,6 +44,7 @@ class TinyPspellShell {
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = shell_exec($this->cmd);
|
$data = shell_exec($this->cmd);
|
||||||
|
@unlink($this->tmpfile);
|
||||||
$returnData = array();
|
$returnData = array();
|
||||||
$dataArr = preg_split("/\n/", $data, -1, PREG_SPLIT_NO_EMPTY);
|
$dataArr = preg_split("/\n/", $data, -1, PREG_SPLIT_NO_EMPTY);
|
||||||
|
|
||||||
|
@ -73,6 +74,7 @@ class TinyPspellShell {
|
||||||
die("Error opening tmp file.");
|
die("Error opening tmp file.");
|
||||||
|
|
||||||
$data = shell_exec($this->cmd);
|
$data = shell_exec($this->cmd);
|
||||||
|
@unlink($this->tmpfile);
|
||||||
$returnData = array();
|
$returnData = array();
|
||||||
$dataArr = preg_split("/\n/", $data, -1, PREG_SPLIT_NO_EMPTY);
|
$dataArr = preg_split("/\n/", $data, -1, PREG_SPLIT_NO_EMPTY);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue