[0004212] Work Order Entry: fixed error when voided WO refence is reused.
[fa-stable.git] / includes / archive.inc
index 131ea413102c445178d302e43d17b8c2c7d01c62..b1a81001eb1d5fe10c51d01f4fcf79aa99356071 100644 (file)
@@ -16,7 +16,7 @@
 
 class archive
 {
-       function archive($name)
+       function __construct($name)
        {
                $this->options = array (
                        'basedir' => ".",
@@ -238,9 +238,9 @@ class archive
 
 class tar_file extends archive
 {
-       function tar_file($name)
+       function __construct($name)
        {
-               $this->archive($name);
+               parent::__construct($name);
                $this->options['type'] = "tar";
        }
 
@@ -428,9 +428,9 @@ class tar_file extends archive
 
 class gzip_file extends tar_file
 {
-       function gzip_file($name)
+       function __construct($name)
        {
-               $this->tar_file($name);
+               parent::__construct($name);
                $this->options['type'] = "gzip";
        }
 
@@ -463,4 +463,3 @@ class gzip_file extends tar_file
        }
 }
 
-?>
\ No newline at end of file