]> git.mjollnir.org Git - moodle.git/commitdiff
Merged fix for MDL-7248 from stable
authormoodler <moodler>
Sun, 29 Oct 2006 13:31:27 +0000 (13:31 +0000)
committermoodler <moodler>
Sun, 29 Oct 2006 13:31:27 +0000 (13:31 +0000)
mod/wiki/view.php

index 0a9b0c78d1a27622b467d9781702e0c2682f258a..ec07162a7c82e73d91c13eaedb8a23d099cbc47c 100644 (file)
@@ -7,7 +7,7 @@
     require_once("../../config.php");
     require_once("lib.php");
     #require_once("$CFG->dirroot/course/lib.php"); // For side-blocks    
-    require_once(dirname(__FILE__).'/../../lib/ajax/ajaxlib.php');
+    require_once($CFG->libdir . '/ajax/ajaxlib.php');
 
     $ewiki_action = optional_param('ewiki_action', '', PARAM_ALPHA);     // Action on Wiki-Page
     $id           = optional_param('id', 0, PARAM_INT);                  // Course Module ID, or
             }
         } else {
                        // OK, the page is now locked to us. Put in the AJAX for keeping the lock
-            print_require_js(array('yui_yahoo','yui_connection'));
+            require_js(array('yui_yahoo','yui_connection'));
             $strlockcancelled=get_string('lockcancelled','wiki');
             $strnojslockwarning=get_string('nojslockwarning','wiki');
             $intervalms=WIKI_LOCK_RECONFIRM*1000;