X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fpackages.inc;h=c3aa518cd3de40f0d305c77eb1a3a5248f74751e;hb=19ddc3939071044c8e94b628f1d6a039f50cc493;hp=2e1b92e3445d91c9ca3fa90dd8b4159736371a1b;hpb=f8219593c85e1020093b93972386fd477675504f;p=fa-stable.git diff --git a/includes/packages.inc b/includes/packages.inc index 2e1b92e3..c3aa518c 100644 --- a/includes/packages.inc +++ b/includes/packages.inc @@ -19,7 +19,8 @@ define('PUBKEY_PATH', $path_to_root); // FrontAccounting package class // class package extends gzip_file { - function package($filename, $basedir=null) + + function __construct($filename, $basedir=null) { global $path_to_root; @@ -30,7 +31,7 @@ class package extends gzip_file { } else mkdir($basedir); } - $this->archive($filename); + parent::__construct($filename); $this->set_options(array('basedir'=> $basedir)); $this->options['type'] = "pkg"; }