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

- fixed missing globals

parent b8b1b540
...@@ -54,6 +54,8 @@ class addon_installer { ...@@ -54,6 +54,8 @@ class addon_installer {
* @throws AddonInstallerValidationException * @throws AddonInstallerValidationException
*/ */
private function validatePackage($path) { private function validatePackage($path) {
global $app;
$app->log('Validating extracted addon at ' . $path, 0, false); $app->log('Validating extracted addon at ' . $path, 0, false);
if(!is_dir($path)) { if(!is_dir($path)) {
......
...@@ -34,7 +34,7 @@ class ispconfig_addon_installer_base { ...@@ -34,7 +34,7 @@ class ispconfig_addon_installer_base {
} }
protected function copyInterfaceFiles() { protected function copyInterfaceFiles() {
global $conf; global $app, $conf;
$app->log('Copying interface files.', 0, false); $app->log('Copying interface files.', 0, false);
$install_dir = realpath($conf['rootpath'] . '/..'); $install_dir = realpath($conf['rootpath'] . '/..');
...@@ -56,7 +56,7 @@ class ispconfig_addon_installer_base { ...@@ -56,7 +56,7 @@ class ispconfig_addon_installer_base {
} }
protected function copyServerFiles() { protected function copyServerFiles() {
global $conf; global $app, $conf;
$app->log('Copying server files.', 0, false); $app->log('Copying server files.', 0, false);
...@@ -169,6 +169,8 @@ class ispconfig_addon_installer_base { ...@@ -169,6 +169,8 @@ class ispconfig_addon_installer_base {
public function onBeforeInstall() { } public function onBeforeInstall() { }
public function onInstall() { public function onInstall() {
global $app;
$app->log('Running onInstall()', 0, false); $app->log('Running onInstall()', 0, false);
$this->copyAddonFiles(); $this->copyAddonFiles();
$this->copyInterfaceFiles(); $this->copyInterfaceFiles();
...@@ -182,6 +184,8 @@ class ispconfig_addon_installer_base { ...@@ -182,6 +184,8 @@ class ispconfig_addon_installer_base {
public function onBeforeUpdate() { } public function onBeforeUpdate() { }
public function onUpdate() { public function onUpdate() {
global $app;
$app->log('Running onUpdate()', 0, false); $app->log('Running onUpdate()', 0, false);
$this->copyAddonFiles(); $this->copyAddonFiles();
$this->copyInterfaceFiles(); $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