From e28e8cc1d7e3c6683237c86955b7c1da23c02696 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 1 Dec 2009 12:31:21 -0800 Subject: 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 --- actions/apidirectmessagenew.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/apidirectmessagenew.php b/actions/apidirectmessagenew.php index fed6acc30..e6c39ce4a 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'; } -- cgit v1.2.3-54-g00ecf