From a4c36bdca6722663635e8d90e5427c73c97d7600 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Thu, 31 Jul 2008 03:13:49 +0000 Subject: [PATCH] "MDL-13766, move require_once" --- lib/weblib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 83174aa19a..751e26904b 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -43,8 +43,6 @@ require_once("$CFG->libdir/filterlib.php"); require_once("$CFG->libdir/ajax/ajaxlib.php"); -require_once("$CFG->dirroot/repository/lib.php"); - /// Constants /// Define text formatting types ... eventually we can add Wiki, BBcode etc @@ -4871,6 +4869,7 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v $str .= ''."\n"; if ($usehtmleditor) { + require_once("$CFG->dirroot/repository/lib.php"); $str_toggle = ''. get_string('editortoggle') .''; // Show shortcuts button if HTML editor is in use, but only if JavaScript is enabled (MDL-9556) $ret = get_repository_client(); -- 2.39.5