]> git.mjollnir.org Git - moodle.git/commitdiff
Use $this->error for only error report
authorthepurpleblob <thepurpleblob>
Wed, 14 Mar 2007 13:14:37 +0000 (13:14 +0000)
committerthepurpleblob <thepurpleblob>
Wed, 14 Mar 2007 13:14:37 +0000 (13:14 +0000)
question/format/xml/format.php

index 611245f4351b70fb87a6bfb6ebfa69b2273e4a15..23fae5e16e0d5db1742fb9f4687003f12c4cc957 100755 (executable)
@@ -511,7 +511,7 @@ class qformat_xml extends qformat_default {
             }
             else {
                 $notsupported = get_string( 'xmltypeunsupported','quiz',$question_type );
-                echo "<p>$notsupported</p>";
+                $this->error( $notsupportted );
                 $qo = null;
             }