From f389ceff2a2866f0ecf003b73c7a285b7cdb15db Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 3 Sep 2007 06:15:58 +0000 Subject: [PATCH] Don't try to use YUI when AJAX is not enabled --- mod/wiki/view.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 "