Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed includes in included files - see bug #4891; backported from HEAD

  • Loading branch information...
commit e7546a22334728d27a4f75a0e93ce9e910118be5 1 parent 8857a37
skodak authored
Showing with 6 additions and 4 deletions.
  1. +5 −3 backup/bb/restore_bb.php
  2. +1 −1  mod/quiz/lib.php
View
8 backup/bb/restore_bb.php
@@ -1,9 +1,11 @@
-<?php
+<?php // $Id$
// This file facilitates the conversion of a Blackboard course export
// into a Moodle course export. It assumes an unzipped directory and makes in-place alterations.
-
+
+defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
+
// Ziba Scott <ziba@linuxbox.com> 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 );
View
2  mod/quiz/lib.php
@@ -287,7 +287,7 @@ function quiz_delete_course($course, $feedback=true) {
$strcatdeleted = get_string('unusedcategorydeleted', 'quiz');
if ($categories = get_records('quiz_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);
Please sign in to comment.
Something went wrong with that request. Please try again.