enable debug as an option
authorAlan <alan@roojs.com>
Tue, 6 Feb 2024 04:34:31 +0000 (12:34 +0800)
committerAlan <alan@roojs.com>
Tue, 6 Feb 2024 04:34:31 +0000 (12:34 +0800)
File/Convert.php

index ed9cb72..6cf3a85 100644 (file)
@@ -57,6 +57,9 @@ class File_Convert
         
         $this->mimetype = $mimetype;
         self::$options = $options;
+        if (isset($options['debug'])) {
+            $this->debug = $options['debug'];
+        }
     }