From 9b788471d4d5141bf4991367f1f46f2a4e35da36 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sat, 10 Apr 2010 22:50:15 +0200 Subject: Add translator documentation. --- lib/apiaction.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/apiaction.php') diff --git a/lib/apiaction.php b/lib/apiaction.php index 59dc47c23..5245c7ef6 100644 --- a/lib/apiaction.php +++ b/lib/apiaction.php @@ -1065,6 +1065,7 @@ class ApiAction extends Action $this->initTwitterAtom(); break; default: + // TRANS: Client error on an API request with an unsupported data format. $this->clientError(_('Not a supported data format.')); break; } @@ -1093,6 +1094,7 @@ class ApiAction extends Action $this->endTwitterRss(); break; default: + // TRANS: Client error on an API request with an unsupported data format. $this->clientError(_('Not a supported data format.')); break; } @@ -1209,6 +1211,7 @@ class ApiAction extends Action $this->showJsonObjects($profile_array); break; default: + // TRANS: Client error on an API request with an unsupported data format. $this->clientError(_('Not a supported data format.')); return; } -- cgit v1.2.3-54-g00ecf From 1081b06bbe10ee5457bd5c53df4561f512c78ded Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Thu, 15 Apr 2010 12:52:59 -0400 Subject: Allow cross-site ajax with CORS. Only allows un-credentialed (as in, no cookies or basic auth), no custom headers, and get (no post, put, delete, etc) requests. --- lib/apiaction.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/apiaction.php') diff --git a/lib/apiaction.php b/lib/apiaction.php index 5245c7ef6..d5580abd3 100644 --- a/lib/apiaction.php +++ b/lib/apiaction.php @@ -102,6 +102,7 @@ class ApiAction extends Action function handle($args) { + header('Access-Control-Allow-Origin: *'); parent::handle($args); } -- cgit v1.2.3-54-g00ecf