mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-9300 The aspell spell-checker does not work in 1.8; merged from MOODLE_18_STABLE
This commit is contained in:
parent
a2c4671e33
commit
57714e475e
@ -55,7 +55,7 @@ function suggText() {
|
||||
}
|
||||
|
||||
function init_spell() {
|
||||
var controlForm = getElementById('spellcheck');
|
||||
var controlForm = document.getElementById('spellcheck');
|
||||
|
||||
// create a new controlWindow object
|
||||
controlWindowObj = new controlWindow( controlForm );
|
||||
|
@ -2,6 +2,10 @@
|
||||
include_once("../../../config.php");
|
||||
require_login();
|
||||
|
||||
if (empty($CFG->aspellpath)) {
|
||||
error('Spellchecker not configured');
|
||||
}
|
||||
|
||||
header('Content-type: text/html; charset=utf-8');
|
||||
|
||||
// Speller pages script http://spellerpages.sourceforge.net/
|
||||
@ -35,9 +39,8 @@ function check_language($cmd) {
|
||||
|
||||
global $CFG;
|
||||
|
||||
error_reporting(E_ALL); // for debug, final version shouldn't have this...
|
||||
clearstatcache();
|
||||
$current_lang = current_language();
|
||||
$current_lang = str_replace('_utf8', '', current_language());
|
||||
$output = '';
|
||||
|
||||
if(!($handle = popen($cmd .' dump dicts', 'r'))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user