From 8213f5b2627a6b63db9f84b572918bd7e3254dff Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 6 Apr 2001 14:14:16 +0000 Subject: A lot of small changes (search-n-replace) make a big commit: - fixed update bug in book.module - provide a log message when both adding and updating book pages - all configurable variables are now accessed through "variable_get()": - rewrote watchdog and submission throttle and removed watchdog.inc - improved robustness of sections.inc - imporved story.module - updated ./database/database.sql --- includes/function.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/function.inc') diff --git a/includes/function.inc b/includes/function.inc index 809fd4ed9..00a4a14f7 100644 --- a/includes/function.inc +++ b/includes/function.inc @@ -81,7 +81,7 @@ function format_date($timestamp, $type = "medium") { function format_username($username) { global $user; if ($username) return (user_access($user, "account") ? "$username" : "$username"); - else { global $anonymous; return $anonymous; } + else return variable_get(anonymous, "Anonymous"); } function format_email($address) { -- cgit v1.2.3