From 5077cafd3860706a983ca4a3624e68b2f321d446 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 7 Jul 2001 16:37:27 +0000 Subject: - account.php: + tidied up the texts - common.inc: + undid bad coding style + fixed typo in permissions - poll.module: + (automatically) removed tabs and trailing whitespaces --- includes/common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 86c24c1b4..1bb337280 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -147,7 +147,7 @@ function format_date($timestamp, $type = "medium", $format = "") { case "custom": for ($i = strlen($format); $i >= 0; $c = $format[--$i]) { if (strstr("DFlMSw", $c)) { - $date=t(date($c, $timestamp)).$date; + $date = t(date($c, $timestamp)).$date; } else if (strstr("AaBdgGhHiIjLmnrstTUYyZz", $c)) { $date = date($c, $timestamp).$date; @@ -164,7 +164,7 @@ function format_date($timestamp, $type = "medium", $format = "") { } function format_username($username) { - if ($username) return (user_access("administer accounts") ? "$username" : "$username"); + if ($username) return (user_access("administer users") ? "$username" : "$username"); else return variable_get(anonymous, "Anonymous"); } -- cgit v1.2.3