mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
Fixed four more references to mimetypes.php (bug 2690) Thanks, Gustav!
This commit is contained in:
parent
ec00f82454
commit
8a0556be8c
4 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||
|
|
|
@ -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'] : '';
|
||||
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue