From 1ed266baee969afc32e8d07e78db4add9a8470ab Mon Sep 17 00:00:00 2001 From: jerrywestrick Date: Mon, 6 Aug 2001 17:56:30 +0000 Subject: [PATCH] changed errorlog calling format to new array() style... --- admin/inc/class.uilog.inc.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/admin/inc/class.uilog.inc.php b/admin/inc/class.uilog.inc.php index 62a0eed182..55af64d017 100644 --- a/admin/inc/class.uilog.inc.php +++ b/admin/inc/class.uilog.inc.php @@ -139,14 +139,14 @@ { global $phpgw, $phpgw_info; /* -$phpgw->log->write('I-TestWrite, write: %1','This message should appear in log'); -$phpgw->log->message('I-TestMsg, msg: %1','This message should appear in log'); -$phpgw->log->error('I-TestInfo, info: %1','This Informational should not be in log'); +$phpgw->log->write(array('text'=>'I-TestWrite, write: %1','p1'=>'This message should appear in log')); +$phpgw->log->message(array('text'=>'I-TestMsg, msg: %1','p1'=>'This message should appear in log')); +$phpgw->log->error(array('text'=>'I-TestInfo, info: %1','p1'=>'This Informational should not be in log')); $phpgw->log->clearstack(); -$phpgw->log->error('I-TestInfo, info: %1','This Informational should be in log'); -$phpgw->log->error('W-TestWarn, warn: %1','This is a test Warning'); -$phpgw->log->error('E-TestError, err: %1','This is a test Error'); -//$phpgw->log->error('F-Abend, abort: %1','Force abnormal termination'); +$phpgw->log->error(array('text'=>'I-TestInfo, info: %1','p1'=>'This Informational should be in log')); +$phpgw->log->error(array('text'=>'W-TestWarn, warn: %1','p1'=>'This is a test Warning')); +$phpgw->log->error(array('text'=>'E-TestError, err: %1','p1'=>'This is a test Error')); +$phpgw->log->error(array('text'=>'F-Abend, abort: %1','p1'=>'Force abnormal termination')); $phpgw->log->commit(); // commit error stack to log... */ $this->t->set_file(array('log_list_t' => 'log.tpl'));