]> git.pld-linux.org Git - packages/ajax-spell.git/blame - ajax-spell-fixes.patch
- nah. pspell compat not fixed...
[packages/ajax-spell.git] / ajax-spell-fixes.patch
CommitLineData
726425e4
ER
1diff -u ../pspell_comp.php ./pspell_comp.php
2--- ../pspell_comp.php 2005-06-24 15:32:02.000000000 +0300
3+++ ./pspell_comp.php 2005-06-24 15:38:15.000000000 +0300
4@@ -44,9 +44,9 @@
5
6 if(!defined('ASPELL_BIN')) define('ASPELL_BIN','aspell');
7
8-define(PSPELL_FAST,1); # Fast mode (least number of suggestions)
9-define(PSPELL_NORMAL,2); # Normal mode (more suggestions)
10-define(PSPELL_BAD_SPELLERS,3); # Slow mode (a lot of suggestions) )
11+define('PSPELL_FAST',1); # Fast mode (least number of suggestions)
12+define('PSPELL_NORMAL',2); # Normal mode (more suggestions)
13+define('PSPELL_BAD_SPELLERS',3); # Slow mode (a lot of suggestions) )
14
15 function pspell_config_create($language, $spelling=null, $jargon=null, $encoding='iso8859-1'){
16 return new Pspell($language, $spelling, $jargon, $encoding);
17@@ -120,23 +120,23 @@
18 function _prepareArgs(){
19 $this->args = '';
20
21- if($this->$language){
22- $this->args .= ' --lang='.escapeshellarg($language);
23- }else{
24+ if ($this->language) {
25+ $this->args .= ' --lang='.escapeshellarg($this->language);
26+ } else {
27 return false; // no lang no spell
28 }
29
30 #FIXME how to support spelling?
31
32- if($this->$jargon){
33- $this->args .= ' --jargon='.escapeshellarg($jargon);
34+ if ($this->jargon){
35+ $this->args .= ' --jargon='.escapeshellarg($this->jargon);
36 }
37
38- if($this->$encoding){
39- $this->args .= ' --encoding='.escapeshellarg($encoding);
40+ if($this->encoding){
41+ $this->args .= ' --encoding='.escapeshellarg($this->encoding);
42 }
43
44- switch ($this->mode){
45+ switch ($this->mode) {
46 case PSPELL_FAST:
47 $this->args .= ' --sug-mode=fast';
48 break;
This page took 0.087871 seconds and 4 git commands to generate.