diff options
author | andi <andi@splitbrain.org> | 2005-06-08 20:27:58 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-06-08 20:27:58 +0200 |
commit | 95657bc6773c23c04843d51d5224df0bbd5191f0 (patch) | |
tree | 119d23ef8bfb8977f79acc114e016ea66691d2c6 /inc | |
parent | 2765ac2310959056fc3548fbdd745258de6c048c (diff) | |
download | rpg-95657bc6773c23c04843d51d5224df0bbd5191f0.tar.gz rpg-95657bc6773c23c04843d51d5224df0bbd5191f0.tar.bz2 |
Spellchecker fixes
The spellchecker now works in IE6, Firefox and Opera 8 :-)
SACK was updated to the latest release (plus a minor fix)
Proper UTF-8 headers were added to the AJAX PHP backends
darcs-hash:20050608182758-9977f-1eacd0ba9993a62f094433d982f668e38d17ba14.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/aspell.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/aspell.php b/inc/aspell.php index ea8a7e428..9e83436a8 100644 --- a/inc/aspell.php +++ b/inc/aspell.php @@ -165,7 +165,7 @@ class Aspell{ ); $process = proc_open(ASPELL_BIN.' -a'.$this->args, $descspec, $pipes); - if (is_resource($process)) { + if ($process) { //write to stdin fwrite($pipes[0],$text); fclose($pipes[0]); @@ -184,13 +184,13 @@ class Aspell{ if(proc_close($process) != 0){ //something went wrong - trigger_error("aspell returned an error: $err", E_USER_WARNING); - return null; + $err = "Aspell returned an error: $err"; + return false; } return true; } //opening failed - trigger_error("Could not run aspell '".ASPELL_BIN."'", E_USER_WARNING); + $err = "Could not run Aspell '".ASPELL_BIN."'"; return false; } |