Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed to absolute path for reaching the questiontype dependent edit…

…ing page layout file.

This should increase robustness - some installations have faced problems with the previously used relative references.

This fix should be merged with the stable branch asap
  • Loading branch information...
commit 401f9a6a7839481edeb28e38a8687430bc4703de 1 parent 80acb05
kaipe authored
View
2  mod/quiz/questiontypes/calculated/editquestion.php
@@ -193,6 +193,6 @@
}
print_heading_with_help(get_string("editingcalculated", "quiz"), "calculated", "quiz");
-require("calculated.html");
+require("$CFG->dirroot/mod/quiz/questiontypes/calculated/calculated.html");
?>
View
2  mod/quiz/questiontypes/description/editquestion.php
@@ -1,6 +1,6 @@
<?php // $Id$
print_heading_with_help(get_string("editingdescription", "quiz"), "description", "quiz");
- require("description.html");
+ require("$CFG->dirroot/mod/quiz/questiontypes/description/description.html");
?>
View
2  mod/quiz/questiontypes/match/editquestion.php
@@ -21,6 +21,6 @@
}
}
print_heading_with_help(get_string("editingmatch", "quiz"), "match", "quiz");
- require("match.html");
+ require("$CFG->dirroot/mod/quiz/questiontypes/match/match.html");
?>
View
2  mod/quiz/questiontypes/multianswer/editquestion.php
@@ -41,6 +41,6 @@
}
print_heading_with_help(get_string('editingmultianswer', 'quiz'),
'multianswer', 'quiz');
- require('multianswer.html');
+ require("$CFG->dirroot/mod/quiz/questiontypes/multianswer/multianswer.html");
?>
View
2  mod/quiz/questiontypes/multichoice/editquestion.php
@@ -19,6 +19,6 @@
}
}
print_heading_with_help(get_string("editingmultichoice", "quiz"), "multichoice", "quiz");
- require("multichoice.html");
+ require("$CFG->dirroot/mod/quiz/questiontypes/multichoice/multichoice.html");
?>
View
2  mod/quiz/questiontypes/numerical/editquestion.php
@@ -81,6 +81,6 @@
}
print_heading_with_help(get_string("editingnumerical", "quiz"), "numerical", "quiz");
- require("numerical.html");
+ require("$CFG->dirroot/mod/quiz/questiontypes/numerical/numerical.html");
?>
View
2  mod/quiz/questiontypes/random/editquestion.php
@@ -1,6 +1,6 @@
<?php // $Id$
print_heading_with_help(get_string("editingrandom", "quiz"), "random", "quiz");
- require("random.html");
+ require("$CFG->dirroot/mod/quiz/questiontypes/random/random.html");
?>
View
2  mod/quiz/questiontypes/randomsamatch/editquestion.php
@@ -6,6 +6,6 @@
}
$numberavailable = count_records("quiz_questions", "category", $category->id, "qtype", SHORTANSWER);
print_heading_with_help(get_string("editingrandomsamatch", "quiz"), "randomsamatch", "quiz");
- require("randomsamatch.html");
+ require("$CFG->dirroot/mod/quiz/questiontypes/randomsamatch/randomsamatch.html");
?>
View
2  mod/quiz/questiontypes/shortanswer/editquestion.php
@@ -18,6 +18,6 @@
}
}
print_heading_with_help(get_string("editingshortanswer", "quiz"), "shortanswer", "quiz");
- require("shortanswer.html");
+ require("$CFG->dirroot/mod/quiz/questiontypes/shortanswer/shortanswer.html");
?>
View
2  mod/quiz/questiontypes/truefalse/editquestion.php
@@ -23,6 +23,6 @@
}
print_heading_with_help(get_string("editingtruefalse", "quiz"), "truefalse", "quiz");
- require("truefalse.html");
+ require("$CFG->dirroot/mod/quiz/questiontypes/truefalse/truefalse.html");
?>
Please sign in to comment.
Something went wrong with that request. Please try again.