Formatting and php3 fixes

This commit is contained in:
Miles Lott 2001-08-15 16:30:16 +00:00
parent 6a7f952b42
commit 4fd65d883a
2 changed files with 26 additions and 35 deletions

View File

@ -41,7 +41,7 @@
if ($parms == '')
{
return;
};
}
$etext =$parms['text'];
$parray = array($parms['p1'],$parms['p2'],$parms['p3'],$parms['p4'],$parms['p5'],$parms['p6'],$parms['p7'],$parms['p8'],$parms['p9'],$parms['p10']);
$fname = $parms['file'];
@ -65,10 +65,10 @@
if (!$this->fname or !$this->line)
{
$phpgw->log->error(array('text'=>'W-PGMERR, Programmer failed to pass __FILE__ and/or __LINE__ in next log message',
$phpgw->log->error(array(
'text'=>'W-PGMERR, Programmer failed to pass __FILE__ and/or __LINE__ in next log message',
'file'=>__FILE__,'line'=>__LINE__
)
);
));
}
$phpgw->log->errorstack[] = $this;

View File

@ -18,13 +18,14 @@
* Instance Variables... *
\***************************/
var $errorstack = array();
var $public_functions = array('message',
var $public_functions = array(
'message',
'error',
'iserror',
'severity',
'commit',
'clearstack',
'astable',
'astable'
);
function message($parms)
@ -34,7 +35,6 @@
return true;
}
function error($parms)
{
$parms['ismsg']=0;
@ -42,7 +42,6 @@
return true;
}
function write($parms)
{
$parms['ismsg']=0;
@ -54,11 +53,6 @@
return true;
}
function iserror($parms)
{
$ecode = $parms['code'];
@ -74,7 +68,6 @@
return false;
}
function severity()
{
$max = 'D';
@ -102,7 +95,6 @@
function commit()
{
global $phpgw, $phpgw_info;
$db = $phpgw->db;
// $db->lock('phpgw_log');
@ -147,7 +139,6 @@
return true;
}
function clearstack()
{
$new = array();