diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-03-09 19:33:18 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-03-09 19:33:18 +0100 |
commit | da12a76063ad5cb4aea09e68d8f24b4cf0ce94d4 (patch) | |
tree | 3793e6154e2b047c424d1bd485a62efee04dd813 | |
parent | 91275a655cefd61f21a09cf50412cad752a9368c (diff) | |
download | rpg-da12a76063ad5cb4aea09e68d8f24b4cf0ce94d4.tar.gz rpg-da12a76063ad5cb4aea09e68d8f24b4cf0ce94d4.tar.bz2 |
spell check fix for newer aspell versions
implemented change as suggested by Pter Szldovics in the Wiki
darcs-hash:20060309183318-7ad00-d73d6ea2fa7d4e50c7e166db1437d5f517b7ca5d.gz
-rw-r--r-- | inc/aspell.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/aspell.php b/inc/aspell.php index fe1ad9dc6..0cf519b43 100644 --- a/inc/aspell.php +++ b/inc/aspell.php @@ -219,9 +219,10 @@ class Aspell{ fclose($pipes[2]); // close process - if(proc_close($process) != 0){ + $rc = proc_close($process); + if ($err){ //something went wrong - $err = "Aspell returned an error: $err"; + $err = "Aspell returned an error(".ASPELL_BIN." exitcode: $rc ):\n".$err; return false; } return true; |