[icinga-checkins] icinga.org: icingaweb2-module-director/master: JobHook: pass args, not argument count

git at icinga.org git at icinga.org
Fri Jun 17 14:06:39 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: df631f506eebf725d749402de20b33ca42791509
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=df631f506eebf725d749402de20b33ca42791509

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri Jun 17 14:06:17 2016 +0200

JobHook: pass args, not argument count

---

 library/Director/Hook/JobHook.php |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/library/Director/Hook/JobHook.php b/library/Director/Hook/JobHook.php
index 167b150..63e8a0c 100644
--- a/library/Director/Hook/JobHook.php
+++ b/library/Director/Hook/JobHook.php
@@ -89,19 +89,19 @@ abstract class JobHook
      */
     protected function info($message)
     {
-        call_user_func_array(array('Icinga\\Application\\Logger', 'info'), func_num_args());
+        call_user_func_array(array('Icinga\\Application\\Logger', 'info'), func_get_args());
         return $this;
     }
 
     protected function warning($message)
     {
-        call_user_func_array(array('Icinga\\Application\\Logger', 'warn'), func_num_args());
+        call_user_func_array(array('Icinga\\Application\\Logger', 'warn'), func_get_args());
         return $this;
     }
 
     protected function error($message)
     {
-        call_user_func_array(array('Icinga\\Application\\Logger', 'error'), func_num_args());
+        call_user_func_array(array('Icinga\\Application\\Logger', 'error'), func_get_args());
         return $this;
     }
 }



More information about the icinga-checkins mailing list