]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
typo fix: '$this' now spelled correctly. Looks like this'll fix acceptance of 'source...
authorBrion Vibber <brion@pobox.com>
Tue, 1 Dec 2009 20:31:21 +0000 (12:31 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 1 Dec 2009 20:31:21 +0000 (12:31 -0800)
@fixme: there's duplication of reserved sources list between at least this and apistatusesupdate module

actions/apidirectmessagenew.php

index fed6acc30e6ed4ecb55617b05a98fd6e3a028e62..e6c39ce4ac6e6950e34d45abd00abbf2884fb44d 100644 (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';
         }