From 84bdd22f2dd2bfcdef9dd355e824257478c3c0b0 Mon Sep 17 00:00:00 2001 From: paulr Date: Thu, 21 Apr 2011 04:24:29 +1000 Subject: [PATCH] messages and such --- lib/plugins/messages.php | 4 ++-- lib/plugins/www.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/plugins/messages.php b/lib/plugins/messages.php index 557e6f6..d7a268f 100644 --- a/lib/plugins/messages.php +++ b/lib/plugins/messages.php @@ -17,9 +17,9 @@ function msg_getMessages($acked = false) return $data; } -function msg_toDate() +function msg_toDate($time) { - + return strftime("%c", $time); } function msg_addMessage($colour, $message) diff --git a/lib/plugins/www.php b/lib/plugins/www.php index ab6bff9..2c59349 100644 --- a/lib/plugins/www.php +++ b/lib/plugins/www.php @@ -119,9 +119,9 @@ function www_top() $msgs = msg_getMessages(); foreach($msgs as $msg) { - $msgtime = msg_toDate($msg["time"]); - $msgcol = $msg["colour"]; - $msgtxt = $msg["text"]; + $msgtime = msg_toDate($msg["msgdate"]); + $msgcol = $msg["msgcolour"]; + $msgtxt = $msg["msgtext"]; echo "$msgtime - $msgtxt"; } -- 1.7.0.4