From 95657bc6773c23c04843d51d5224df0bbd5191f0 Mon Sep 17 00:00:00 2001 From: andi Date: Wed, 8 Jun 2005 20:27:58 +0200 Subject: 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 --- inc/aspell.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'inc') 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; } -- cgit v1.2.3