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
This commit is contained in:
Brion Vibber 2009-12-01 12:31:21 -08:00
parent 7591439451
commit e28e8cc1d7
1 changed files with 1 additions and 1 deletions

View File

@ -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';
}