From: Mikael Nordfeldth Date: Fri, 25 Oct 2013 11:17:29 +0000 (+0200) Subject: ForceGroup and some qvitter API stuff still used staticGet X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=362b6ad2fc83c3b1e83119bedc77deb3754efe5d;p=quix0rs-gnu-social.git ForceGroup and some qvitter API stuff still used staticGet --- diff --git a/actions/apiaccountregister.php b/actions/apiaccountregister.php index be66710d80..abddbeacab 100644 --- a/actions/apiaccountregister.php +++ b/actions/apiaccountregister.php @@ -102,7 +102,7 @@ class ApiAccountRegisterAction extends ApiAction } if (!empty($this->code)) { - $this->invite = Invitation::staticGet('code', $this->code); + $this->invite = Invitation::getKV('code', $this->code); if (empty($this->invite)) { // TRANS: Client error displayed when trying to register to an invite-only site without a valid invitation. $this->clientError(_('Sorry, invalid invitation code.'), 401); @@ -197,7 +197,7 @@ class ApiAccountRegisterAction extends ApiAction if (!$email || strlen($email) == 0) { return false; } - $user = User::staticGet('email', $email); + $user = User::getKV('email', $email); return is_object($user); } diff --git a/actions/apiexternalprofileshow.php b/actions/apiexternalprofileshow.php index 5abb2e3c74..4e9f3ebc48 100644 --- a/actions/apiexternalprofileshow.php +++ b/actions/apiexternalprofileshow.php @@ -53,7 +53,7 @@ class ApiExternalProfileShowAction extends ApiPrivateAuthAction $profileurl = urldecode($this->arg('profileurl')); // TODO: Make this more ... unique! - $this->profile = Profile::staticGet('profileurl', $profileurl); + $this->profile = Profile::getKV('profileurl', $profileurl); if (!($this->profile instanceof Profile)) { // TRANS: Client error displayed when requesting profile information for a non-existing profile. diff --git a/actions/apistatusesfavs.php b/actions/apistatusesfavs.php index a736208276..8e637b41cf 100644 --- a/actions/apistatusesfavs.php +++ b/actions/apistatusesfavs.php @@ -56,7 +56,7 @@ class ApiStatusesFavsAction extends ApiAuthAction $id = $this->trimmed('id'); - $this->original = Notice::staticGet('id', $id); + $this->original = Notice::getKV('id', $id); if (!($this->original instanceof Notice)) { // TRANS: Client error displayed trying to display redents of a non-exiting notice. @@ -102,7 +102,7 @@ class ApiStatusesFavsAction extends ApiAuthAction $ids_with_profile_data = array(); $i=0; foreach($ids as $id) { - $profile = Profile::staticGet('id', $id); + $profile = Profile::getKV('id', $id); $ids_with_profile_data[$i]['user_id'] = $id; $ids_with_profile_data[$i]['nickname'] = $profile->nickname; $ids_with_profile_data[$i]['fullname'] = $profile->fullname; diff --git a/plugins/ForceGroup/ForceGroupPlugin.php b/plugins/ForceGroup/ForceGroupPlugin.php index 626275d6b9..be4fd78070 100644 --- a/plugins/ForceGroup/ForceGroupPlugin.php +++ b/plugins/ForceGroup/ForceGroupPlugin.php @@ -53,7 +53,7 @@ class ForceGroupPlugin extends Plugin { $profile = $notice->getProfile(); - $isRemote = !(User::staticGet('id', $profile->id)); + $isRemote = !(User::getKV('id', $profile->id)); if ($isRemote) { /* * Notices from remote users on other sites