mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
merging MOODLE_19_QUESTIONS with HEAD
This commit is contained in:
parent
3bee1ead40
commit
271e6decda
47 changed files with 2807 additions and 1546 deletions
|
@ -25,8 +25,8 @@ class qformat_coursetestmanager extends qformat_default {
|
|||
}
|
||||
|
||||
function importprocess($filename) {
|
||||
global $CFG,$strimportquestions,$form,$question_category,$category,$course,
|
||||
$hostname, $mdapath, $mdbpath;
|
||||
global $CFG, $USER, $strimportquestions,$form,$question_category,$category,$course,
|
||||
$hostname, $mdapath, $mdbpath;
|
||||
if ((PHP_OS == "Linux") and isset($hostname)) {
|
||||
$hostname = trim($hostname);
|
||||
// test the ODBC socket server connection
|
||||
|
@ -261,6 +261,8 @@ class qformat_coursetestmanager extends qformat_default {
|
|||
echo "<hr /><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
|
||||
$question->category = $this->category->id;
|
||||
$question->stamp = make_unique_id_code(); // Set the unique code (not to be changed)
|
||||
$question->createdby = $USER->id;
|
||||
$question->timecreated = time();
|
||||
if (!$question->id = insert_record("question", $question)) {
|
||||
error("Could not insert new question!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue