X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fprofilecompletion.php;h=aaf6026eb58115c0ccef5134f0cc5e6da8c2e3b9;hb=5f74ec6782e9f5e9ece39fa0c200b475009caf41;hp=045bf68a7fcbf2a01ae669af5c0bc1cdc7e2ad79;hpb=7d64d8c78cfa102b91975598ef9e574d2ef14b8c;p=quix0rs-gnu-social.git diff --git a/actions/profilecompletion.php b/actions/profilecompletion.php index 045bf68a7f..aaf6026eb5 100644 --- a/actions/profilecompletion.php +++ b/actions/profilecompletion.php @@ -80,7 +80,6 @@ class ProfilecompletionAction extends Action // TRANS: Client error displayed when the session token does not match or is not given. $this->clientError(_('There was a problem with your session token.'. ' Try again, please.')); - return false; } // Only for logged-in users @@ -90,16 +89,14 @@ class ProfilecompletionAction extends Action if (empty($this->user)) { // TRANS: Error message displayed when trying to perform an action that requires a logged in user. $this->clientError(_('Not logged in.')); - return false; } $id = $this->arg('peopletag_id'); - $this->peopletag = Profile_list::staticGet('id', $id); + $this->peopletag = Profile_list::getKV('id', $id); if (empty($this->peopletag)) { // TRANS: Client error displayed trying to reference a non-existing list. $this->clientError(_('No such list.')); - return false; } $field = $this->arg('field'); @@ -107,7 +104,6 @@ class ProfilecompletionAction extends Action // TRANS: Client error displayed when trying to add an unindentified field to profile. // TRANS: %s is a field name. $this->clientError(sprintf(_('Unidentified field %s.'), htmlspecialchars($field)), 404); - return false; } $this->field = $field; @@ -151,7 +147,7 @@ class ProfilecompletionAction extends Action } } $this->elementEnd('body'); - $this->elementEnd('html'); + $this->endHTML(); } function getResults() @@ -179,8 +175,7 @@ class ProfilecompletionAction extends Action else { $cnt = $profile->find(); } - // @todo FIXME: Call-time pass-by-reference has been deprecated. - Event::handle('EndProfileCompletionSearch', $this, &$profile, $search_engine); + Event::handle('EndProfileCompletionSearch', array($this, &$profile, $search_engine)); } while ($profile->fetch()) {