From: Brion Vibber Date: Tue, 1 Dec 2009 20:31:21 +0000 (-0800) Subject: typo fix: '$this' now spelled correctly. Looks like this'll fix acceptance of 'source... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e28e8cc1d7e3c6683237c86955b7c1da23c02696;p=quix0rs-gnu-social.git typo fix: '$this' now spelled correctly. Looks like this'll fix acceptance of 'source' param for direct messages posted to API @fixme: there's duplication of reserved sources list between at least this and apistatusesupdate module --- diff --git a/actions/apidirectmessagenew.php b/actions/apidirectmessagenew.php index fed6acc30e..e6c39ce4ac 100644 --- a/actions/apidirectmessagenew.php +++ b/actions/apidirectmessagenew.php @@ -79,7 +79,7 @@ class ApiDirectMessageNewAction extends ApiAuthAction $this->source = $this->trimmed('source'); // Not supported by Twitter. $reserved_sources = array('web', 'omb', 'mail', 'xmpp', 'api'); - if (empty($thtis->source) || in_array($this->source, $reserved_sources)) { + if (empty($this->source) || in_array($this->source, $reserved_sources)) { $source = 'api'; }