From: moodler Date: Mon, 3 Sep 2007 06:15:58 +0000 (+0000) Subject: Don't try to use YUI when AJAX is not enabled X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f389ceff2a2866f0ecf003b73c7a285b7cdb15db;p=moodle.git Don't try to use YUI when AJAX is not enabled --- diff --git a/mod/wiki/view.php b/mod/wiki/view.php index cb922e7a3c..f201cf92c3 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 "