Fixed four more references to mimetypes.php (bug 2690) Thanks, Gustav!

This commit is contained in:
moodler 2005-03-07 15:11:43 +00:00
parent ec00f82454
commit 8a0556be8c
4 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@
/// ABSTRACT SUPERCLASS FOR QUSTION TYPES THAT USE DATASETS ///
///////////////////////////////////////////////////////////////
require_once($CFG->dirroot . '/files/mimetypes.php');
require_once($CFG->libdir.'/filelib.php');
define("LITERAL", "1");
define("FILE", "2");

View file

@ -18,7 +18,7 @@ function display() {
$course = $this->course;
$resource = $this->resource;
require_once("$CFG->dirroot/files/mimetypes.php");
require_once($CFG->libdir.'/filelib.php');
$subdir = isset($_GET['subdir']) ? $_GET['subdir'] : '';

View file

@ -207,7 +207,7 @@ function display() {
/// First, find out what sort of file we are dealing with.
require_once("$CFG->dirroot/files/mimetypes.php");
require_once($CFG->libdir.'/filelib.php');
$querystring = '';
$resourcetype = '';

View file

@ -1,6 +1,6 @@
<?php
require_once("../../config.php");
require_once("$CFG->dirroot/files/mimetypes.php");
require_once($CFG->libdir.'/filelib.php');
# this is the upload/download plugin, which allows to put arbitrary binary
# files into the ewiki database using the provided specialized form, or the