summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-05-18 18:41:46 +0000
committerDries Buytaert <dries@buytaert.net>2004-05-18 18:41:46 +0000
commit10c5e95a2fce173d4c13d6df4d9e15d9bb8437f6 (patch)
tree88026297783f22b48b727aff7692574b2e0bfa12 /includes
parent25a709a1f30626ebaaa396ca3e2c55d33b5ec7f6 (diff)
downloadbrdo-10c5e95a2fce173d4c13d6df4d9e15d9bb8437f6.tar.gz
brdo-10c5e95a2fce173d4c13d6df4d9e15d9bb8437f6.tar.bz2
- Made it possible for anonymous users to leave their name, e-mail address
and the URL of their homepage. Patch by Pablo.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 71e4da38c..95cac35dc 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -979,7 +979,14 @@ function format_name($object) {
** the true author of the content.
*/
- $output = $object->name;
+ if ($object->homepage) {
+ $output = "<a href=\"$object->homepage\">$object->name</a>";
+ }
+ else {
+ $output = $object->name;
+ }
+
+ $output .= ' ('. t('not verified') .')';
}
else {
$output = t(variable_get("anonymous", "Anonymous"));