From bbba4759673146f268e5f682576e5d7b2b8a0d16 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 7 Mar 2006 23:41:22 +0000 Subject: [PATCH] fixed includes in included files - see bug #4891 --- backup/bb/restore_bb.php | 8 +++++--- mod/quiz/lib.php | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/backup/bb/restore_bb.php b/backup/bb/restore_bb.php index 60753c7877e..4e63c404478 100644 --- a/backup/bb/restore_bb.php +++ b/backup/bb/restore_bb.php @@ -1,9 +1,11 @@ - 10-25-04 -require_once('xsl_emulate_xslt.inc'); +require_once($CFG->dirroot.'/backup/bb/xsl_emulate_xslt.inc'); function get_subdirs($directory){ $opendirectory = opendir( $directory ); diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 82f473f56a6..b4a0c491f6d 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -288,7 +288,7 @@ function quiz_delete_course($course, $feedback=true) { $strcatdeleted = get_string('unusedcategorydeleted', 'quiz'); if ($categories = get_records('question_categories', 'course', $course->id, 'parent', 'id, parent, name, course')) { - require_once("locallib.php"); + require_once($CFG->dirroot.'/mod/quiz/locallib.php'); //Sort categories following their tree (parent-child) relationships $categories = sort_categories_by_tree($categories);