Merge branch 'MDL-48342_28' of git://github.com/jmvedrine/moodle into MOODLE_28_STABLE
This commit is contained in:
@@ -587,7 +587,8 @@ class qformat_default {
|
||||
/// this format, this function converts it into a question
|
||||
/// object suitable for processing and insertion into Moodle.
|
||||
|
||||
echo "<p>This flash question format has not yet been completed!</p>";
|
||||
// We should never get there unless the qformat plugin is broken.
|
||||
throw new coding_exception('Question format plugin is missing important code: readquestion.');
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
+3
-5
@@ -696,9 +696,8 @@ class qformat_default {
|
||||
* @return object question object
|
||||
*/
|
||||
protected function readquestion($lines) {
|
||||
|
||||
$formatnotimplemented = get_string('formatnotimplemented', 'question');
|
||||
echo "<p>{$formatnotimplemented}</p>";
|
||||
// We should never get there unless the qformat plugin is broken.
|
||||
throw new coding_exception('Question format plugin is missing important code: readquestion.');
|
||||
|
||||
return null;
|
||||
}
|
||||
@@ -930,8 +929,7 @@ class qformat_default {
|
||||
*/
|
||||
protected function writequestion($question) {
|
||||
// if not overidden, then this is an error.
|
||||
$formatnotimplemented = get_string('formatnotimplemented', 'question');
|
||||
echo "<p>{$formatnotimplemented}</p>";
|
||||
throw new coding_exception('Question format plugin is missing important code: writequestion.');
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user