diff --git a/mod/wiki/view.php b/mod/wiki/view.php index cb922e7a3c7..f201cf92c39 100644 --- a/mod/wiki/view.php +++ b/mod/wiki/view.php @@ -454,11 +454,12 @@ "; } } else { - // OK, the page is now locked to us. Put in the AJAX for keeping the lock - $strlockcancelled=get_string('lockcancelled','wiki'); - $strnojslockwarning=get_string('nojslockwarning','wiki'); - $intervalms=WIKI_LOCK_RECONFIRM*1000; - print " + if (ajaxenabled()) { + // OK, the page is now locked to us. Put in the AJAX for keeping the lock + $strlockcancelled=get_string('lockcancelled','wiki'); + $strnojslockwarning=get_string('nojslockwarning','wiki'); + $intervalms=WIKI_LOCK_RECONFIRM*1000; + print "