From 0d58d74eab8881c7e3e9b7e99e90b87b51ec87b4 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 1 Mar 2006 23:30:21 +0100 Subject: Postgres backend for new OO auth darcs-hash:20060301223021-7ad00-868d32088de468523c63c4cc7e44869331dfc4b9.gz --- inc/common.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inc/common.php') diff --git a/inc/common.php b/inc/common.php index c321bce82..636b26f0b 100644 --- a/inc/common.php +++ b/inc/common.php @@ -140,12 +140,14 @@ function buildAttributes($params){ * @author Andreas Gohr * @see html_msgarea */ -function msg($message,$lvl=0){ +function msg($message,$lvl=0,$line='',$file=''){ global $MSG; $errors[-1] = 'error'; $errors[0] = 'info'; $errors[1] = 'success'; + if($line || $file) $message.=' ['.basename($file).':'.$line.']'; + if(!headers_sent()){ if(!isset($MSG)) $MSG = array(); $MSG[]=array('lvl' => $errors[$lvl], 'msg' => $message); -- cgit v1.2.3