X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2FModPlus%2FModPlusPlugin.php;h=8b32db7866b6c4884cfc864456d5eb98e55fb3df;hb=414a95a784294d63f4c636ef17e468db9428a446;hp=5ca2e7714221be769b0acae3a09641c8e8c03f16;hpb=d16af504f6b7158fa5dfca2dde0fa1f9621330ee;p=quix0rs-gnu-social.git diff --git a/plugins/ModPlus/ModPlusPlugin.php b/plugins/ModPlus/ModPlusPlugin.php index 5ca2e77142..8b32db7866 100644 --- a/plugins/ModPlus/ModPlusPlugin.php +++ b/plugins/ModPlus/ModPlusPlugin.php @@ -86,7 +86,7 @@ class ModPlusPlugin extends Plugin * @param NoticeListItem $item * @return boolean hook value */ - function onStartShowNoticeItem($item) + function onStartShowNoticeItem(NoticeListItem $item) { $this->showProfileOptions($item->out, $item->profile); return true; @@ -108,12 +108,11 @@ class ModPlusPlugin extends Plugin * Currently only adds output for remote profiles, nothing for local users. * * @param HTMLOutputter $out - * @param Profile $profile (may also be an ArrayWrapper... sigh) + * @param Profile $profile */ - protected function showProfileOptions(HTMLOutputter $out, $profile) + protected function showProfileOptions(HTMLOutputter $out, Profile $profile) { - $isRemote = !(User::getKV('id', $profile->id)); - if ($isRemote) { + if (!$profile->isLocal()) { $target = common_local_url('remoteprofile', array('id' => $profile->id)); // TRANS: Label for access to remote profile options. $label = _m('Remote profile options...');