summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-06-08 21:47:46 +0200
committerandi <andi@splitbrain.org>2005-06-08 21:47:46 +0200
commit2e5a6dce8478264ddbe81a03f682055dbeab079c (patch)
tree7edf20afe323f68094aa48d08293af8db3d52c2a /inc
parent95657bc6773c23c04843d51d5224df0bbd5191f0 (diff)
downloadrpg-2e5a6dce8478264ddbe81a03f682055dbeab079c.tar.gz
rpg-2e5a6dce8478264ddbe81a03f682055dbeab079c.tar.bz2
fixed JS error when spellchecker is disabled
darcs-hash:20050608194746-9977f-7880cc210b55ff5f47b52665c580087f266dd9b2.gz
Diffstat (limited to 'inc')
-rw-r--r--inc/html.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php
index bd34bb609..48881b85b 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -913,7 +913,9 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed?
init_locktimer(<?=$conf['locktime']-60?>,'<?=$lang['willexpire']?>');
//initialize spellchecker
- ajax_spell.init('<?=$lang['spell_start']?>','<?=$lang['spell_stop']?>','<?=$lang['spell_wait']?>','<?=$lang['spell_noerr']?>','<?=$lang['spell_nosug']?>');
+ <?if($conf['spellchecker']){?>
+ ajax_spell.init('<?=$lang['spell_start']?>','<?=$lang['spell_stop']?>','<?=$lang['spell_wait']?>','<?=$lang['spell_noerr']?>','<?=$lang['spell_nosug']?>');
+ <?}?>
document.editform.wikitext.focus();
<?}?>