summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-03-01 23:30:21 +0100
committerAndreas Gohr <andi@splitbrain.org>2006-03-01 23:30:21 +0100
commit0d58d74eab8881c7e3e9b7e99e90b87b51ec87b4 (patch)
treeb066c7947785318818c0a567a360d96f664c6987 /inc/common.php
parenta87b764bf4350b87cbe082ac39e6154223a4bc37 (diff)
downloadrpg-0d58d74eab8881c7e3e9b7e99e90b87b51ec87b4.tar.gz
rpg-0d58d74eab8881c7e3e9b7e99e90b87b51ec87b4.tar.bz2
Postgres backend for new OO auth
darcs-hash:20060301223021-7ad00-868d32088de468523c63c4cc7e44869331dfc4b9.gz
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php4
1 files changed, 3 insertions, 1 deletions
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 <andi@splitbrain.org>
* @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);