From: Andrew Dolgov Date: Sat, 5 May 2007 11:03:42 +0000 (+0100) Subject: add format_error, print_error X-Git-Tag: schema_freeze_for_1.2.11~72 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=68d2f95eb9e5b86e781d642909364369bf9cda02;p=tt-rss.git add format_error, print_error --- diff --git a/functions.php b/functions.php index bfed27be..059ca524 100644 --- a/functions.php +++ b/functions.php @@ -3309,6 +3309,11 @@ $msg"; } + function format_error($msg) { + return "
+ $msg
"; + } + 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);