MDL-50280 WebCT import scripts don't always clean up
authorSkylar Kelty <S.Kelty@kent.ac.uk>
Mon, 18 May 2015 14:25:18 +0000 (15:25 +0100)
committerSkylar Kelty <S.Kelty@kent.ac.uk>
Mon, 18 May 2015 14:25:18 +0000 (15:25 +0100)
question/format/webct/format.php

index ad7afd1..83c800e 100644 (file)
@@ -323,7 +323,7 @@ class qformat_webct extends qformat_default {
                 return file($dirfiles[1]);
             } else {
                 $this->error(get_string('cannotunzip', 'question'));
-                fulldelete($this->temp_dir);
+                fulldelete($this->tempdir);
             }
         } else {
             $this->error(get_string('cannotreaduploadfile', 'error'));