projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PHP7 compatibility fixes.
[fa-stable.git]
/
includes
/
packages.inc
diff --git
a/includes/packages.inc
b/includes/packages.inc
index 2e1b92e3445d91c9ca3fa90dd8b4159736371a1b..c3aa518cd3de40f0d305c77eb1a3a5248f74751e 100644
(file)
--- 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 {
// FrontAccounting package class
//
class package extends gzip_file {
- function package($filename, $basedir=null)
+
+ function __construct($filename, $basedir=null)
{
global $path_to_root;
{
global $path_to_root;
@@
-30,7
+31,7
@@
class package extends gzip_file {
} else
mkdir($basedir);
}
} else
mkdir($basedir);
}
-
$this->archive
($filename);
+
parent::__construct
($filename);
$this->set_options(array('basedir'=> $basedir));
$this->options['type'] = "pkg";
}
$this->set_options(array('basedir'=> $basedir));
$this->options['type'] = "pkg";
}