]> git.mjollnir.org Git - moodle.git/commitdiff
Changed to absolute path for reaching the questiontype dependent editing page layout...
authorkaipe <kaipe>
Sat, 13 Nov 2004 18:29:25 +0000 (18:29 +0000)
committerkaipe <kaipe>
Sat, 13 Nov 2004 18:29:25 +0000 (18:29 +0000)
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

mod/quiz/questiontypes/calculated/editquestion.php
mod/quiz/questiontypes/description/editquestion.php
mod/quiz/questiontypes/match/editquestion.php
mod/quiz/questiontypes/multianswer/editquestion.php
mod/quiz/questiontypes/multichoice/editquestion.php
mod/quiz/questiontypes/numerical/editquestion.php
mod/quiz/questiontypes/random/editquestion.php
mod/quiz/questiontypes/randomsamatch/editquestion.php
mod/quiz/questiontypes/shortanswer/editquestion.php
mod/quiz/questiontypes/truefalse/editquestion.php

index 475e73c060fd0b4ccd6ec14c95bf1754c19ae8be..f8da530516e59a6b898eaa666fbbc4a7b8a51c4f 100644 (file)
@@ -193,6 +193,6 @@ if ($form) {
 }
 
 print_heading_with_help(get_string("editingcalculated", "quiz"), "calculated", "quiz");
-require("calculated.html");
+require("$CFG->dirroot/mod/quiz/questiontypes/calculated/calculated.html");
 
 ?>
index eb2bb14539f858d26ac805badd40d43ae689d0b7..21f8c825730917a6c71eb04e98b4b6e40ed8baed 100644 (file)
@@ -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");
 
 ?>
index f96fc4e34f36f31956d6510735c890c319e91a81..0c8fdeee06964ba3f9e98ddf4cf719a4cfa6031b 100644 (file)
@@ -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");
 
 ?>
index 17b1d7b1461ff56078462553d674f3d55eaa49db..b9feb4840214501e9a64b6862ddac8bf30ef4b34 100644 (file)
@@ -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");
 
 ?>
index cc41411266edc37e79a896a1044c3d66ff1a30cc..763ab05ddb5c6619d20bb5b4e883fb8dd8a64039 100644 (file)
@@ -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");
 
 ?>
index 35eaddec6e76acd533e3e6915c62284858a2541c..39df1bbb481edd15d50da4c95a290c9ab32eecf6 100644 (file)
@@ -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");
 
 ?>
index bb5f8859ca0cb8ef90b870c664ea89a48e3efa4b..819a6602eab4b90da3361fae8fa4b186fe035e1f 100644 (file)
@@ -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");
 
 ?>
index 7f89013d62287c6edab13923438577ec16aa79b8..8589f8d5e8853b8d57c32ba64d771eb534abe07e 100644 (file)
@@ -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");
 
 ?>
index 6c240f4d857ac09e6c853976effa409a60310dbc..7f635813e21f2100b8c36fd16cfd06ddd52432d7 100644 (file)
@@ -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");
 
 ?>
index 9ffe39f6c93203be3f02f43be33360e13e7b7df7..e64b42d97f926758503923f6ca4fc3b64fa20eb9 100644 (file)
@@ -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");
 
 ?>