summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/exe/spellcheck.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/exe/spellcheck.php b/lib/exe/spellcheck.php
index 968e25395..4bb08fd88 100644
--- a/lib/exe/spellcheck.php
+++ b/lib/exe/spellcheck.php
@@ -58,6 +58,11 @@ header('Content-Type: text/plain; charset=utf-8');
$spell = new Aspell($conf['lang'],null,'utf-8');
$spell->setMode(PSPELL_FAST);
+//add personal dictionary
+if(@file_exists(DOKU_INC.'conf/words.aspell')){
+ $spell->personal = DOKU_INC.'conf/words.aspell';
+}
+
//call the requested function
$call = 'spell_'.$_POST['call'];
if(function_exists($call)){