summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-05-05 12:03:42 +0100
committerAndrew Dolgov <[email protected]>2007-05-05 12:03:42 +0100
commit68d2f95eb9e5b86e781d642909364369bf9cda02 (patch)
tree041636e8dd6293e27333bc8e88a41af4a95402a5 /functions.php
parentfe8d2059648bfaf773277918927fcd2af4f314a0 (diff)
add format_error, print_error
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index bfed27be4..059ca524d 100644
--- a/functions.php
+++ b/functions.php
@@ -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);