Skip to content

Commit

Permalink
MDL-9696 used absolute path include in mod_forms
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 10, 2007
1 parent d6dd210 commit 23a7718
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion mod/assignment/mod_form.php
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion mod/chat/mod_form.php
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion mod/choice/mod_form.php
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion mod/data/mod_form.php
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion mod/exercise/mod_form.php
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion mod/forum/mod_form.php
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/mod_form.php
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion mod/journal/mod_form.php
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion mod/label/mod_form.php
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion mod/lesson/mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/mod_form.php
Original file line number Diff line number Diff line change
@@ -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");

Expand Down
4 changes: 2 additions & 2 deletions mod/resource/mod_form.php
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -43,7 +43,7 @@ function definition() {
$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();
}
Expand Down
2 changes: 1 addition & 1 deletion mod/scorm/mod_form.php
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion mod/survey/mod_form.php
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion mod/wiki/mod_form.php
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down

0 comments on commit 23a7718

Please sign in to comment.