summaryrefslogtreecommitdiff
path: root/modules/info/helpers/info_theme.php
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-07-12 22:53:47 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-07-12 22:53:47 -0600
commitff0b66a1a4ed189c3e02a8ad50a63f4d65b3bfa7 (patch)
tree9ba10030a5c5d91d07555df3ecf86580b623276a /modules/info/helpers/info_theme.php
parent50cd41655a5e083de3fee5b43fd72c21ffb3dd25 (diff)
Put owner's url into user link. Seems better than displaying email until we have something like a user profile page.
Diffstat (limited to 'modules/info/helpers/info_theme.php')
-rw-r--r--modules/info/helpers/info_theme.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/info/helpers/info_theme.php b/modules/info/helpers/info_theme.php
index 863317a8..51378e54 100644
--- a/modules/info/helpers/info_theme.php
+++ b/modules/info/helpers/info_theme.php
@@ -37,7 +37,11 @@ class info_theme_Core {
}
if ($item->owner) {
$results .= "<li>";
- $results .= t("By: %owner_name", array("owner_name" => "<a href=\"#\">{$item->owner->full_name}</a>"));
+ if ($item->owner->url) {
+ $results .= t("By: %owner_name", array("owner_name" => "<a href=\"{$item->owner->url}\">{$item->owner->full_name}</a>"));
+ } else {
+ $results .= t("By: %owner_name", array("owner_name" => "{$item->owner->full_name}"));
+ }
$results .= "</li>";
}
return $results;