]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/peopletag.php
add a comment to show runtime at the end of a page
[quix0rs-gnu-social.git] / actions / peopletag.php
index af40b9d82a08476d582c3daa9634fb0e309c7e68..7287cfbf995aa0bf08d29df44cde7627ff59f87b 100644 (file)
@@ -65,7 +65,7 @@ class PeopletagAction extends Action
         $this->tag = $this->trimmed('tag');
 
         if (!common_valid_profile_tag($this->tag)) {
-            $this->clientError(sprintf(_('Not a valid people tag: %s'),
+            $this->clientError(sprintf(_('Not a valid people tag: %s.'),
                 $this->tag));
             return;
         }
@@ -166,19 +166,15 @@ class PeopleTagListItem extends ProfileListItem
         return $aAttrs;
     }
 
-    function showHomepage()
+    function homepageAttributes()
     {
-        if (!empty($this->profile->homepage)) {
-            $this->out->text(' ');
-            $aAttrs = array('href' => $this->profile->homepage,
-                            'class' => 'url');
-            if (common_config('nofollow', 'peopletag')) {
-                $aAttrs['rel'] = 'nofollow';
-            }
-            $this->out->elementStart('a', $aAttrs);
-            $this->out->raw($this->highlight($this->profile->homepage));
-            $this->out->elementEnd('a');
+        $aAttrs = parent::linkAttributes();
+
+        if (common_config('nofollow', 'peopletag')) {
+            $aAttrs['rel'] = 'nofollow';
         }
+
+        return $aAttrs;
     }
 }