From fb0bf616df1ffca9d371646938ef5429ba8d1f9d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 23 Jul 2005 09:17:14 +0000 Subject: [PATCH] message text is now optional (code from Lukas) --- lam/lib/status.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/status.inc b/lam/lib/status.inc index f508decd..1f7397d7 100644 --- a/lam/lib/status.inc +++ b/lam/lib/status.inc @@ -43,11 +43,11 @@ $Id$ * @param string $MessageHeadline The headline of the status message. *
It may be formatted with special color/link/bold tags. * @param string $MessageText The text of the status message. - *
It may be formatted with special color/link/bold tags. + *
It may be formatted with special color/link/bold tags. This parameter is optional. * @param array $MessageVariables The variables that are used to replace the spacers (%s) in the * submitted text. This parameter is optional. */ -function StatusMessage($MessageTyp,$MessageHeadline,$MessageText,$MessageVariables = array()) { +function StatusMessage($MessageTyp,$MessageHeadline,$MessageText='',$MessageVariables = array()) { /* Setting CSS-StyleSheet class depending on the $MessageTyp and rewriting $MessageTyp with a readable string. */ if($MessageTyp == "INFO") { $class = "class=\"statusInfo\"";