]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use homepage link attributes method for peopletaglist
authorEvan Prodromou <evan@status.net>
Mon, 5 Apr 2010 15:17:36 +0000 (11:17 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 5 Apr 2010 15:17:36 +0000 (11:17 -0400)
actions/peopletag.php

index af40b9d82a08476d582c3daa9634fb0e309c7e68..456cc21c4c149446b5f16ac3d3d57a39816fae00 100644 (file)
@@ -166,18 +166,10 @@ 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');
+        if (common_config('nofollow', 'peopletag')) {
+            $aAttrs['rel'] = 'nofollow';
         }
     }
 }