mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
Revert "MDL-29081 add support for proxy in TinyMCE GoogleSpell plugin"
This reverts commit 57638f2c05857bceea25909d0ef31ecf5f99b142.
This commit is contained in:
parent
c6bba40392
commit
eb7d00a69a
@ -79,12 +79,6 @@ class GoogleSpell extends SpellChecker {
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $header);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
||||
if (!empty($this->_config['GoogleSpell.proxy'])) {
|
||||
curl_setopt($ch, CURLOPT_PROXY, $this->_config['GoogleSpell.proxy']);
|
||||
if (!empty($this->_config['GoogleSpell.proxyport'])) {
|
||||
curl_setopt($ch, CURLOPT_PROXYPORT, $this->_config['GoogleSpell.proxyport']);
|
||||
}
|
||||
}
|
||||
$xml = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
} else {
|
||||
|
@ -14,10 +14,6 @@ require_once(dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname(__F
|
||||
//$config['general.engine'] = 'PSpellShell';
|
||||
//$config['general.remote_rpc_url'] = 'http://some.other.site/some/url/rpc.php';
|
||||
|
||||
// GoogleSpell settings
|
||||
$config['GoogleSpell.proxy'] = isset($CFG->proxyhost) ? $CFG->proxyhost : '';
|
||||
$config['GoogleSpell.proxyport'] = isset($CFG->proxyport) ? $CFG->proxyport : '';
|
||||
|
||||
if ($config['general.engine'] === 'PSpell' or $config['general.engine'] === 'PSpellShell') {
|
||||
// PSpell settings
|
||||
$config['PSpell.mode'] = PSPELL_FAST;
|
||||
|
Loading…
x
Reference in New Issue
Block a user