summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-07-07 16:37:27 +0000
committerDries Buytaert <dries@buytaert.net>2001-07-07 16:37:27 +0000
commit5077cafd3860706a983ca4a3624e68b2f321d446 (patch)
tree33f5237b5e7a0e68c99b494d116d8697a214e717 /includes/common.inc
parent42cd39dbd8cc7e9a7b858f0064fce45b11586e59 (diff)
downloadbrdo-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.inc4
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");
}