summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-09-09 13:36:01 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-09-09 13:36:01 +0000
commitb75c1e1c8bdc9b0fafaed8b7de8b27dec6fefd66 (patch)
tree0e6b8908b21909d76c1966305841133bd84d1850 /modules/node/node.module
parent884c05a64f8336f9a0fdaacd34e588ec37d49eb0 (diff)
downloadbrdo-b75c1e1c8bdc9b0fafaed8b7de8b27dec6fefd66.tar.gz
brdo-b75c1e1c8bdc9b0fafaed8b7de8b27dec6fefd66.tar.bz2
Replace hardcoded <html lang="en"> with a locale dependant one. This is especially important for asian sites where this has an effect on font selection.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index d750593cb..e4773d569 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -993,8 +993,7 @@ function node_block($op = 'list', $delta = 0) {
* The link should be an absolute URL.
*/
function node_feed($nodes = 0, $channel = array()) {
- global $base_url;
- $languages = (function_exists('locale')) ? locale_supported_languages() : array('name' => array());
+ global $base_url, $locale;
if (!$nodes) {
$nodes = db_query_range('SELECT nid FROM {node} WHERE promote = 1 AND status = 1 ORDER BY created DESC', 0, 15);
@@ -1012,7 +1011,7 @@ function node_feed($nodes = 0, $channel = array()) {
'title' => variable_get('site_name', 'drupal') .' - '. variable_get('site_slogan', ''),
'link' => $base_url,
'description' => variable_get('site_mission', ''),
- 'language' => (($key = reset(array_keys($languages['name']))) ? $key : 'en')
+ 'language' => $locale
);
$channel = array_merge($channel_defaults, $channel);