From 23a7718bd181614216f372a9fe733ec0fafe2e7e Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 10 Jun 2007 23:20:45 +0000 Subject: [PATCH] MDL-9696 used absolute path include in mod_forms --- mod/assignment/mod_form.php | 2 +- mod/chat/mod_form.php | 2 +- mod/choice/mod_form.php | 2 +- mod/data/mod_form.php | 2 +- mod/exercise/mod_form.php | 2 +- mod/forum/mod_form.php | 2 +- mod/glossary/mod_form.php | 2 +- mod/journal/mod_form.php | 2 +- mod/label/mod_form.php | 2 +- mod/lesson/mod_form.php | 2 +- mod/quiz/mod_form.php | 2 +- mod/resource/mod_form.php | 4 ++-- mod/scorm/mod_form.php | 2 +- mod/survey/mod_form.php | 2 +- mod/wiki/mod_form.php | 2 +- 15 files changed, 16 insertions(+), 16 deletions(-) diff --git a/mod/assignment/mod_form.php b/mod/assignment/mod_form.php index eea5bd594c..6a12aa0e80 100644 --- a/mod/assignment/mod_form.php +++ b/mod/assignment/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); class mod_assignment_mod_form extends moodleform_mod { diff --git a/mod/chat/mod_form.php b/mod/chat/mod_form.php index 71cca2250e..adf195008c 100644 --- a/mod/chat/mod_form.php +++ b/mod/chat/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); class mod_chat_mod_form extends moodleform_mod { diff --git a/mod/choice/mod_form.php b/mod/choice/mod_form.php index 29b994b169..0760054af8 100644 --- a/mod/choice/mod_form.php +++ b/mod/choice/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); class mod_choice_mod_form extends moodleform_mod { diff --git a/mod/data/mod_form.php b/mod/data/mod_form.php index 5cf7b3d420..eba0482d80 100644 --- a/mod/data/mod_form.php +++ b/mod/data/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); class mod_data_mod_form extends moodleform_mod { diff --git a/mod/exercise/mod_form.php b/mod/exercise/mod_form.php index 6bd33ed108..10adcf7805 100644 --- a/mod/exercise/mod_form.php +++ b/mod/exercise/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); class mod_exercise_mod_form extends moodleform_mod { diff --git a/mod/forum/mod_form.php b/mod/forum/mod_form.php index daeeb004e5..9c798eeec5 100644 --- a/mod/forum/mod_form.php +++ b/mod/forum/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); class mod_forum_mod_form extends moodleform_mod { diff --git a/mod/glossary/mod_form.php b/mod/glossary/mod_form.php index 0aa07fa65d..cdef399e74 100644 --- a/mod/glossary/mod_form.php +++ b/mod/glossary/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); class mod_glossary_mod_form extends moodleform_mod { diff --git a/mod/journal/mod_form.php b/mod/journal/mod_form.php index 942402a8b9..8ad911200a 100644 --- a/mod/journal/mod_form.php +++ b/mod/journal/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); class mod_journal_mod_form extends moodleform_mod { diff --git a/mod/label/mod_form.php b/mod/label/mod_form.php index c51f4e4530..113811686a 100644 --- a/mod/label/mod_form.php +++ b/mod/label/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); class mod_label_mod_form extends moodleform_mod { diff --git a/mod/lesson/mod_form.php b/mod/lesson/mod_form.php index 891bfa7759..6cda0a961c 100644 --- a/mod/lesson/mod_form.php +++ b/mod/lesson/mod_form.php @@ -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 { diff --git a/mod/quiz/mod_form.php b/mod/quiz/mod_form.php index fb494d6d9c..4cb412b966 100644 --- a/mod/quiz/mod_form.php +++ b/mod/quiz/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); require_once("$CFG->dirroot/mod/quiz/locallib.php"); diff --git a/mod/resource/mod_form.php b/mod/resource/mod_form.php index b327ad0175..1948c22130 100644 --- a/mod/resource/mod_form.php +++ b/mod/resource/mod_form.php @@ -1,5 +1,5 @@ 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(); } diff --git a/mod/scorm/mod_form.php b/mod/scorm/mod_form.php index b50f431fb7..fbe880b684 100644 --- a/mod/scorm/mod_form.php +++ b/mod/scorm/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); require_once($CFG->dirroot.'/mod/scorm/locallib.php'); class mod_scorm_mod_form extends moodleform_mod { diff --git a/mod/survey/mod_form.php b/mod/survey/mod_form.php index 9b6a4d2158..cb29ccd0a9 100644 --- a/mod/survey/mod_form.php +++ b/mod/survey/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); class mod_survey_mod_form extends moodleform_mod { diff --git a/mod/wiki/mod_form.php b/mod/wiki/mod_form.php index ff2602f1e4..e2ecb9ca83 100644 --- a/mod/wiki/mod_form.php +++ b/mod/wiki/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); class mod_wiki_mod_form extends moodleform_mod { -- 2.39.5