MDL-9696 used absolute path include in mod_forms
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
class mod_assignment_mod_form extends moodleform_mod {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
class mod_chat_mod_form extends moodleform_mod {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
class mod_choice_mod_form extends moodleform_mod {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
class mod_data_mod_form extends moodleform_mod {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
class mod_exercise_mod_form extends moodleform_mod {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
class mod_forum_mod_form extends moodleform_mod {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
class mod_glossary_mod_form extends moodleform_mod {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
class mod_journal_mod_form extends moodleform_mod {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php // $Id$
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
class mod_label_mod_form extends moodleform_mod {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* @package lesson
|
||||
**/
|
||||
|
||||
require_once('moodleform_mod.php');
|
||||
require_once($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
require_once('locallib.php');
|
||||
|
||||
class mod_lesson_mod_form extends moodleform_mod {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
require_once("$CFG->dirroot/mod/quiz/locallib.php");
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
class mod_resource_mod_form extends moodleform_mod {
|
||||
var $_resinstance;
|
||||
@@ -43,7 +43,7 @@ class mod_resource_mod_form extends moodleform_mod {
|
||||
$mform->addElement('header', 'typedesc', get_string('resourcetype'.$type,'resource'));
|
||||
$this->_resinstance->setup_elements($mform);
|
||||
|
||||
$this->standard_coursemodule_elements();
|
||||
$this->standard_coursemodule_elements(false);
|
||||
|
||||
$this->add_action_buttons();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
require_once($CFG->dirroot.'/mod/scorm/locallib.php');
|
||||
|
||||
class mod_scorm_mod_form extends moodleform_mod {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
class mod_survey_mod_form extends moodleform_mod {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once ('moodleform_mod.php');
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
|
||||
class mod_wiki_mod_form extends moodleform_mod {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user