return $this->profileurl;
}
+ public function getNickname()
+ {
+ return $this->nickname;
+ }
+
/**
* Returns the best URI for a profile. Plugins may override.
*
// check for a local user first
$user = User::getKV('id', $this->id);
-
- if (!empty($user)) {
- $uri = $user->uri;
+ if ($user instanceof User) {
+ $uri = $user->getUri();
}
Event::handle('EndGetProfileUri', array($this, &$uri));