mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-26 12:51:29 +00:00
add format_error, print_error
This commit is contained in:
@@ -3309,6 +3309,11 @@
|
||||
<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) {
|
||||
return print format_notice($msg);
|
||||
}
|
||||
@@ -3317,6 +3322,11 @@
|
||||
return print format_warning($msg);
|
||||
}
|
||||
|
||||
function print_error($msg) {
|
||||
return print format_error($msg);
|
||||
}
|
||||
|
||||
|
||||
function T_sprintf() {
|
||||
$args = func_get_args();
|
||||
return vsprintf(__(array_shift($args)), $args);
|
||||
|
||||
Reference in New Issue
Block a user