diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-07-07 16:37:27 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-07-07 16:37:27 +0000 |
commit | 5077cafd3860706a983ca4a3624e68b2f321d446 (patch) | |
tree | 33f5237b5e7a0e68c99b494d116d8697a214e717 /includes/common.inc | |
parent | 42cd39dbd8cc7e9a7b858f0064fce45b11586e59 (diff) | |
download | brdo-5077cafd3860706a983ca4a3624e68b2f321d446.tar.gz brdo-5077cafd3860706a983ca4a3624e68b2f321d446.tar.bz2 |
- account.php:
+ tidied up the texts
- common.inc:
+ undid bad coding style
+ fixed typo in permissions
- poll.module:
+ (automatically) removed tabs and trailing whitespaces
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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") ? "<A HREF=\"admin.php?mod=account&op=view&name=". urlencode($username) ."\">$username</A>" : "<A HREF=\"account.php?op=view&name=". urlencode($username) ."\">$username</A>"); + if ($username) return (user_access("administer users") ? "<A HREF=\"admin.php?mod=account&op=view&name=". urlencode($username) ."\">$username</A>" : "<A HREF=\"account.php?op=view&name=". urlencode($username) ."\">$username</A>"); else return variable_get(anonymous, "Anonymous"); } |