|
[
Permalink
| « Hide
]
Sam Hemelryk added a comment - 16/Sep/09 03:14 PM
Just noticed that it also does it on export.php but not quite so spectacular
> By the way, I don't have any hotpot files to use to test this.
> Please can someone else do it. Please do not commit untested changes to stable versions of Moodle. Your most recent commit has broken HotPot import on Moodle 1.9. It was working fine, but now it does not. I will try to fix it later on today if I have time. You have me very worried ... I have to say > Well, my commit un-broke import and export in every other file format
> both the import and export pages were giving fatal errors before Ah, you are talking about Moodle 2.0. I am talking about stable version of Moodle, i.e. Moodle 1.9. That was not broken and but it is now. I would like to undo your "fix" on Moodle 1.9. Would that be OK? > What problem does the require_once cause -
A quiz with 6 questions is imported as having 9 questions, 3 of which are gobbledy-gook. > surely it is the better solution if it works? It doesn't work on Moodle 1.9, so it is surely not a better solution. I would like to undo the fix on Moodle 1.9 and look at the problem carefully later. We can leave Moodle 2.0 as it is. Here is a file to test with.
It is a JQuiz file containing 4 questions:
JQuiz and the other 5 programs in the Hot Potatoes authoring suite from here: FYI, Hot Potatoes is free to download and use. > I will fix it today
Great. Thanks very much for the help. Right. hotpot_convert_relative_urls was not defined in lib, so that one funcition needs to be in format.php.
That affected both 2.0 and 1.9. I can now successfully import the attached test file in both my test sites. Thanks for catching my regression Gordon. That's great news!
I have confirmed that import of all other types of Hot Potatoes quiz are working as well, on both Moodle 1.9 and Moodle 2.0, so that's a great step forward. And the code is a lot cleaner now too. Well done Tim and thanks! |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||