mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Formatting and php3 fixes
This commit is contained in:
parent
6a7f952b42
commit
4fd65d883a
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user