Fixes platal links on wiki.
authorStéphane Jacob <sj@m4x.org>
Sun, 4 Jul 2010 13:56:50 +0000 (15:56 +0200)
committerStéphane Jacob <sj@m4x.org>
Sun, 4 Jul 2010 13:57:10 +0000 (15:57 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/wiki/farmconfig.php

index 617ebfb..a4fef9d 100644 (file)
@@ -97,8 +97,8 @@ function doBicol($column=false)
 function doPlatalLink($link, $text)
 {
     if (strlen(trim($text)) == 0) {
-        $user = User::get($link);
-        $text = $user->fullName();
+        $profile = Profile::get($link);
+        $text = $profile->fullName();
     }
     return '<a href="profile/' . $link . '" class="popup2">' . $text . '</a>';
 }