summaryrefslogtreecommitdiff
path: root/inc/aspell.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-07-01 09:39:19 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-07-01 09:39:19 +0200
commit6258cd9d2bd8824786e5485a93d483a1910a2dc4 (patch)
tree2f1f95ed82af24644cb252efb16b1e7c4b0b30d3 /inc/aspell.php
parent493a69295cd0593a35200757e54cb946f6081f51 (diff)
downloadrpg-6258cd9d2bd8824786e5485a93d483a1910a2dc4.tar.gz
rpg-6258cd9d2bd8824786e5485a93d483a1910a2dc4.tar.bz2
spellchecker fix for aspell <0.60
darcs-hash:20050701073919-7ad00-524018d3058613591acccea6691e81599e8193fb.gz
Diffstat (limited to 'inc/aspell.php')
-rw-r--r--inc/aspell.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/aspell.php b/inc/aspell.php
index 17ad4884a..72d2f8b86 100644
--- a/inc/aspell.php
+++ b/inc/aspell.php
@@ -72,6 +72,7 @@ class Aspell{
var $jargon = null;
var $encoding = 'iso8859-1';
var $mode = PSPELL_NORMAL;
+ var $version = 0;
var $args='';
@@ -195,9 +196,9 @@ class Aspell{
// versions of Aspell.
$tmp = array();
preg_match('/^\@.*Aspell (\d+)\.(\d+).(\d+)/',$out,$tmp);
- $version = $tmp[1]*1000 + $tmp[2]*10 + $tmp[3];
+ $this->version = $tmp[1]*100 + $tmp[2]*10 + $tmp[3];
- if ($version <= 603) // version 0.60.3
+ if ($this->version <= 603) // version 0.60.3
$r = $terse ? "\n*\n\$1" : "\n\$1"; // replacement for broken Aspell
else
$r = $terse ? "\n*\n" : "\n"; // replacement for good Aspell