Code cleanup and enabling User object's etc. getUri()

This commit is contained in:
Mikael Nordfeldth
2014-04-28 14:08:42 +02:00
parent 0883f54f62
commit 5fd6053220
14 changed files with 93 additions and 84 deletions

View File

@@ -2048,7 +2048,7 @@ function common_profile_uri($profile)
if (Event::handle('StartCommonProfileURI', array($profile, &$uri))) {
$user = User::getKV('id', $profile->id);
if ($user instanceof User) {
$uri = $user->uri;
$uri = $user->getUri();
}
Event::handle('EndCommonProfileURI', array($profile, &$uri));
}