From 14ca3084a0455adf99ca2d7c55685059ad7a238c Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 5 Mar 2005 15:47:49 +0000 Subject: [PATCH] Better check on aspell --- lib/editor/htmlarea.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php index b680268d27a..fc3fc7c3a45 100644 --- a/lib/editor/htmlarea.php +++ b/lib/editor/htmlarea.php @@ -147,7 +147,7 @@ HTMLArea.Config = function () { "inserthorizontalrule", "createanchor", "createlink", "unlink", "nolink", "separator", "insertimage", "inserttable", "insertsmile", "insertchar", - aspellpath) && !empty($CFG->editorspelling)) { + aspellpath) && file_exists($CFG->aspellpath) && !empty($CFG->editorspelling)) { echo '"separator","spellcheck",'; } ?> "separator", "htmlmode", "separator", "popupeditor"] @@ -229,7 +229,7 @@ HTMLArea.Config = function () { clean: [ "Clean Word HTML", "ed_wordclean.gif", false, function(e) {e.execCommand("killword"); }], lefttoright: [ "Direction left to right", "ed_left_to_right.gif", false, function(e) {e.execCommand("lefttoright");} ], righttoleft: [ "Direction right to left", "ed_right_to_left.gif", false, function(e) {e.execCommand("righttoleft");} ], - aspellpath) && !empty($CFG->editorspelling)) { + aspellpath) && file_exists($CFG->aspellpath) && !empty($CFG->editorspelling)) { echo 'spellcheck: ["Spell-check", "spell-check.gif", false, spellClickHandler ],'."\n"; }?> insertsmile: ["Insert Smiley", "em.icon.smile.gif", false, function(e) {e.execCommand("insertsmile");} ],