add format_error, print_error

This commit is contained in:
Andrew Dolgov 2007-05-05 12:03:42 +01:00
parent fe8d205964
commit 68d2f95eb9
1 changed files with 10 additions and 0 deletions

View File

@ -3309,6 +3309,11 @@
<img src=\"images/sign_info.png\">$msg</div>"; <img src=\"images/sign_info.png\">$msg</div>";
} }
function format_error($msg) {
return "<div class=\"error\">
<img src=\"images/sign_excl.png\">$msg</div>";
}
function print_notice($msg) { function print_notice($msg) {
return print format_notice($msg); return print format_notice($msg);
} }
@ -3317,6 +3322,11 @@
return print format_warning($msg); return print format_warning($msg);
} }
function print_error($msg) {
return print format_error($msg);
}
function T_sprintf() { function T_sprintf() {
$args = func_get_args(); $args = func_get_args();
return vsprintf(__(array_shift($args)), $args); return vsprintf(__(array_shift($args)), $args);