]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed typo stopping image importing working
authorthepurpleblob <thepurpleblob>
Thu, 31 May 2007 08:32:07 +0000 (08:32 +0000)
committerthepurpleblob <thepurpleblob>
Thu, 31 May 2007 08:32:07 +0000 (08:32 +0000)
question/format/xml/format.php

index ccdfa201f570ff60af25b4fbbaa008cac0c3eb2d..6adbfecffa751971bdc9204abe573670f16b41cc 100755 (executable)
@@ -132,7 +132,7 @@ class qformat_xml extends qformat_default {
         $image = $this->getpath( $question, array('#','image',0,'#'), $qo->image );
         $image_base64 = $this->getpath( $question, array('#','image_base64','0','#'),'' );
         if (!empty($image_base64)) {
-            $qo->image = $this->importimagefile( $image, stripslashes(image_base64) );
+            $qo->image = $this->importimagefile( $image, stripslashes($image_base64) );
         }
         $qo->generalfeedback = $this->getpath( $question, array('#','generalfeedback',0,'#','text',0,'#'), $qo->generalfeedback, true );
         $qo->defaultgrade = $this->getpath( $question, array('#','defaultgrade',0,'#'), $qo->defaultgrade );