Commit 15c14048 authored by Marius Burkard's avatar Marius Burkard

- fixed missing globals

parent b8b1b540
......@@ -54,6 +54,8 @@ class addon_installer {
* @throws AddonInstallerValidationException
*/
private function validatePackage($path) {
global $app;
$app->log('Validating extracted addon at ' . $path, 0, false);
if(!is_dir($path)) {
......
......@@ -34,7 +34,7 @@ class ispconfig_addon_installer_base {
}
protected function copyInterfaceFiles() {
global $conf;
global $app, $conf;
$app->log('Copying interface files.', 0, false);
$install_dir = realpath($conf['rootpath'] . '/..');
......@@ -56,7 +56,7 @@ class ispconfig_addon_installer_base {
}
protected function copyServerFiles() {
global $conf;
global $app, $conf;
$app->log('Copying server files.', 0, false);
......@@ -169,6 +169,8 @@ class ispconfig_addon_installer_base {
public function onBeforeInstall() { }
public function onInstall() {
global $app;
$app->log('Running onInstall()', 0, false);
$this->copyAddonFiles();
$this->copyInterfaceFiles();
......@@ -182,6 +184,8 @@ class ispconfig_addon_installer_base {
public function onBeforeUpdate() { }
public function onUpdate() {
global $app;
$app->log('Running onUpdate()', 0, false);
$this->copyAddonFiles();
$this->copyInterfaceFiles();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment