User object didn't have getNickname() function
We're just jumping on to the Profile->getNickname() function.
This commit is contained in:
parent
869ca2d20b
commit
8b12e41351
@ -137,6 +137,11 @@ class User extends Managed_DataObject
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
public function getNickname()
|
||||
{
|
||||
return $this->getProfile()->getNickname();
|
||||
}
|
||||
|
||||
function isSubscribed(Profile $other)
|
||||
{
|
||||
return $this->getProfile()->isSubscribed($other);
|
||||
|
@ -4309,6 +4309,7 @@ class DB_DataObject extends DB_DataObject_Overload
|
||||
$case[strtolower($k)] = $k;
|
||||
}
|
||||
if ((substr(phpversion(),0,1) == 5) && isset($case[strtolower($element)])) {
|
||||
file_put_contents('/tmp/backtrace', var_export(debug_backtrace(),true));
|
||||
trigger_error("PHP5 set/get calls should match the case of the variable",E_USER_WARNING);
|
||||
$element = strtolower($element);
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ class UsersalmonAction extends SalmonAction
|
||||
// In reply to a notice either from or mentioning this user.
|
||||
} else if (!empty($context->attention) &&
|
||||
(array_key_exists($this->user->uri, $context->attention) ||
|
||||
array_key_exists($common_profile_url($this->user->nickname),
|
||||
array_key_exists($common_profile_url($this->user->getNickname()),
|
||||
$context->attention)))
|
||||
{
|
||||
// To the attention of this user.
|
||||
|
Loading…
Reference in New Issue
Block a user