diff --git a/install/lib/classes/ispconfig_addon_installer.inc.php b/install/lib/classes/ispconfig_addon_installer.inc.php index 78ef7e0b0cd8fdc3834e4309b02ad99ee5eab4f3..f1b457af8c7b18c4fcb1c96e2b2baeb03f6de51c 100644 --- a/install/lib/classes/ispconfig_addon_installer.inc.php +++ b/install/lib/classes/ispconfig_addon_installer.inc.php @@ -14,7 +14,7 @@ class ispconfig_addon_installer_base { $this->addon_ident = preg_replace('/_addon_installer$/', '', get_called_class()); } - public function onRaisedInstallerEvent($event_name, $data) { + public function onRaisedInstallerEvent($event_name, $data = false) { } } diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php index 49bf4ed77b890667203295150f896ac8d3c00f93..38632d01d1a1f2c5651c99b715bc23d54717fb56 100644 --- a/install/lib/installer_base.lib.php +++ b/install/lib/installer_base.lib.php @@ -2864,7 +2864,7 @@ class installer_base { } } - public function raiseEvent($event_name) { + public function raiseEvent($event_name, $data = false) { global $conf; if(is_null($this->addon_classes)) { @@ -2879,7 +2879,7 @@ class installer_base { reset($this->addon_classes); foreach($this->addon_classes as $cl) { if(method_exists($cl, $call_method)) { - call_user_func(array($cl, $call_method), $event_name); + call_user_func(array($cl, $call_method), $event_name, $data); } } } diff --git a/server/lib/classes/ispconfig_addon_installer_base.inc.php b/server/lib/classes/ispconfig_addon_installer_base.inc.php index 66b7b51315f79cb1b3dc1f67a6380d5be229071a..2aa2d184ab4a94d6de27bf453bcf1ba7ee41e2f4 100644 --- a/server/lib/classes/ispconfig_addon_installer_base.inc.php +++ b/server/lib/classes/ispconfig_addon_installer_base.inc.php @@ -194,7 +194,7 @@ class ispconfig_addon_installer_base { - public function onRaisedInstallerEvent($event_name, $data) { + public function onRaisedInstallerEvent($event_name, $data = false) { } }