From 2c948fdf74a273203ea4fb6d028164b2d02a2ebe Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 8 Mar 2004 14:32:14 +0000 Subject: [PATCH] fixed problem with message variables --- lam-0.4/lib/status.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lam-0.4/lib/status.inc b/lam-0.4/lib/status.inc index f01c5b34..8037bdd3 100644 --- a/lam-0.4/lib/status.inc +++ b/lam-0.4/lib/status.inc @@ -55,7 +55,8 @@ function StatusMessage($MessageTyp,$MessageHeadline,$MessageText,$MessageVariabl $MessageHeadline = "

" . $MessageHeadline . "

"; // Format $MessageHeadline $MessageText = "

" . $MessageText . "

"; // Format $MessageText $format = "
\n
\n\n\n\n\n\n
" . $MessageTyp . "" . $MessageHeadline . $MessageText . "
\n
\n
\n"; - call_user_func_array('printf',array($format,$MessageVariables)); + array_unshift($MessageVariables, $format); + call_user_func_array('printf',$MessageVariables); } /* Use the three replace functions on the submitted Text. */