fixed problem with message variables

This commit is contained in:
Roland Gruber 2004-03-08 14:32:14 +00:00
parent 190177f8d6
commit 2c948fdf74
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ function StatusMessage($MessageTyp,$MessageHeadline,$MessageText,$MessageVariabl
$MessageHeadline = "<h2 " . $class . ">" . $MessageHeadline . "</h2>"; // Format $MessageHeadline $MessageHeadline = "<h2 " . $class . ">" . $MessageHeadline . "</h2>"; // Format $MessageHeadline
$MessageText = "<p " . $class . ">" . $MessageText . "</p>"; // Format $MessageText $MessageText = "<p " . $class . ">" . $MessageText . "</p>"; // Format $MessageText
$format = "<div " . $class . ">\n<br>\n<table>\n<tr>\n<td>" . $MessageTyp . "</td>\n<td>" . $MessageHeadline . $MessageText . "</td>\n</tr>\n</table>\n<br>\n</div>\n"; $format = "<div " . $class . ">\n<br>\n<table>\n<tr>\n<td>" . $MessageTyp . "</td>\n<td>" . $MessageHeadline . $MessageText . "</td>\n</tr>\n</table>\n<br>\n</div>\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. */ /* Use the three replace functions on the submitted Text. */