diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-03-10 18:30:58 -0700 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-03-10 18:30:58 -0700 |
commit | 622cc150d86265cbb1dcd35ae11f4941d42ffdeb (patch) | |
tree | 307baffbbdcb5a2ba26de044510184f2277ee7b1 /actions | |
parent | 1e29cbd6919380aee54b57db62e08c5d1497d763 (diff) |
Fix xml:lang attr
Diffstat (limited to 'actions')
-rw-r--r-- | actions/twitapisearchatom.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/twitapisearchatom.php b/actions/twitapisearchatom.php index c5f724c12..eb9ab5d8e 100644 --- a/actions/twitapisearchatom.php +++ b/actions/twitapisearchatom.php @@ -218,7 +218,6 @@ class TwitapisearchatomAction extends TwitterapiAction { // TODO: A9 OpenSearch stuff like search.twitter.com? - $lang = common_config('site', 'language'); $server = common_config('site', 'server'); $sitename = common_config('site', 'name'); @@ -231,7 +230,7 @@ class TwitapisearchatomAction extends TwitterapiAction // It's used for the source attr on notices 'xmlns:twitter' => 'http://api.twitter.com/', - 'xml:lang' => $lang)); + 'xml:lang' => 'en-US')); // XXX Other locales ? $taguribase = common_config('integration', 'taguri'); $this->element('id', null, "tag:$taguribase:search/$server"); @@ -265,6 +264,9 @@ class TwitapisearchatomAction extends TwitterapiAction $this->element('title', null, "$this->query - $sitename Search"); $this->element('updated', null, common_date_iso8601('now')); + // XXX: The below "rel" links are not valid Atom, but it's what + // Twitter does... + // refresh link $refresh_uri = $search_uri . "&since_id=" . $this->max_id; |