message text is now optional (code from Lukas)
This commit is contained in:
parent
2376d7782a
commit
fb0bf616df
|
@ -43,11 +43,11 @@ $Id$
|
||||||
* @param string $MessageHeadline The headline of the status message.
|
* @param string $MessageHeadline The headline of the status message.
|
||||||
* <br> It may be formatted with special color/link/bold tags.
|
* <br> It may be formatted with special color/link/bold tags.
|
||||||
* @param string $MessageText The text of the status message.
|
* @param string $MessageText The text of the status message.
|
||||||
* <br> It may be formatted with special color/link/bold tags.
|
* <br> 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
|
* @param array $MessageVariables The variables that are used to replace the spacers (%s) in the
|
||||||
* submitted text. This parameter is optional.
|
* 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. */
|
/* Setting CSS-StyleSheet class depending on the $MessageTyp and rewriting $MessageTyp with a readable string. */
|
||||||
if($MessageTyp == "INFO") {
|
if($MessageTyp == "INFO") {
|
||||||
$class = "class=\"statusInfo\"";
|
$class = "class=\"statusInfo\"";
|
||||||
|
|
Loading…
Reference in New Issue