From 939cbd600bcc3710fb83bce3f7328fde8a9d53c7 Mon Sep 17 00:00:00 2001 From: jerrywestrick Date: Mon, 6 Aug 2001 17:53:07 +0000 Subject: [PATCH] change calling format to new array() style... --- phpgwapi/inc/class.errorlog.inc.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/phpgwapi/inc/class.errorlog.inc.php b/phpgwapi/inc/class.errorlog.inc.php index 2456b4a6d3..dcea634932 100644 --- a/phpgwapi/inc/class.errorlog.inc.php +++ b/phpgwapi/inc/class.errorlog.inc.php @@ -28,23 +28,26 @@ ); - function message($etext,$p0='',$p1='',$p2='',$p3='',$p4='',$p5='',$p6='',$p7='',$p8='',$p9='') + function message($parms) { - $parms = array($p0,$p1,$p2,$p3,$p4,$p5,$p6,$p7,$p8,$p9); + $etext =$parms['text']; + $parms = array($parms['p0'],$parms['p1'],$parms['p2'],$parms['p3'],$parms['p4'],$parms['p5'],$parms['p6'],$parms['p7'],$parms['p8'],$parms['p9']); CreateObject('phpgwapi.error',$etext,$parms,1); } - function error($etext,$p0='',$p1='',$p2='',$p3='',$p4='',$p5='',$p6='',$p7='',$p8='',$p9='') + function error($parms) { - $parms = array($p0,$p1,$p2,$p3,$p4,$p5,$p6,$p7,$p8,$p9); + $etext =$parms['text']; + $parms = array($parms['p0'],$parms['p1'],$parms['p2'],$parms['p3'],$parms['p4'],$parms['p5'],$parms['p6'],$parms['p7'],$parms['p8'],$parms['p9']); CreateObject('phpgwapi.error',$etext,$parms,''); } - function write($etext,$p0='',$p1='',$p2='',$p3='',$p4='',$p5='',$p6='',$p7='',$p8='',$p9='') + function write($parms) { - $parms = array($p0,$p1,$p2,$p3,$p4,$p5,$p6,$p7,$p8,$p9); + $etext =$parms['text']; + $parms = array($parms['p0'],$parms['p1'],$parms['p2'],$parms['p3'],$parms['p4'],$parms['p5'],$parms['p6'],$parms['p7'],$parms['p8'],$parms['p9']); $save = $this->errorstack; $this->$errorstack = array(); CreateObject('phpgwapi.error',$etext,$parms,1); @@ -52,8 +55,9 @@ $this->errorstack = $save; } - function iserror($ecode) + function iserror($parms) { + $ecode = $parms['code']; $errorstack = $this->errorstack; reset($errorstack); while(list(,$err)=each($errorstack))