MDL-32220 question import: files sometimes stored in the wrong context.
Sadly, this involves a small API change, but I don't believe anyone was using the argument I had to remove (because we were sometimes passing a wrong value, and there is not way to compute the right value at that point in the code.) Also sadly, the code to compute the context we are importing into is now rather spaghetti-like, but it works.
This commit is contained in:
@@ -172,7 +172,7 @@ class qformat_webct extends qformat_default {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function readquestions($lines, $context) {
|
||||
protected function readquestions($lines) {
|
||||
$webctnumberregex =
|
||||
'[+-]?([0-9]+(\\.[0-9]*)?|\\.[0-9]+)((e|E|\\*10\\*\\*)([+-]?[0-9]+|\\([+-]?[0-9]+\\)))?';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user