summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-08-12 05:44:11 +0000
committerDries Buytaert <dries@buytaert.net>2004-08-12 05:44:11 +0000
commit543d8b720857c8dc6ec4d85c4d813b3638e7046f (patch)
tree6ba19379a0e006a66f6563d22cb92606cd449bd2
parent1831e1b690f02d7f551d38ef88a0ba200f786497 (diff)
downloadbrdo-543d8b720857c8dc6ec4d85c4d813b3638e7046f.tar.gz
brdo-543d8b720857c8dc6ec4d85c4d813b3638e7046f.tar.bz2
- Patch #9972 by njivy: modified node_feed() for the instances where locale is not enabled. Without this patch, reset(array_keys($languages['name'])) throws an error.
-rw-r--r--modules/node.module2
-rw-r--r--modules/node/node.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module
index d619b0063..f7ccc13f4 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -995,7 +995,7 @@ function node_block($op = 'list', $delta = 0) {
*/
function node_feed($nodes = 0, $channel = array()) {
global $base_url;
- $languages = (function_exists('locale')) ? locale_supported_languages() : array();
+ $languages = (function_exists('locale')) ? locale_supported_languages() : array('name' => array());
if (!$nodes) {
$nodes = db_query_range('SELECT nid FROM {node} WHERE promote = 1 AND status = 1 ORDER BY created DESC', 0, 15);
diff --git a/modules/node/node.module b/modules/node/node.module
index d619b0063..f7ccc13f4 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -995,7 +995,7 @@ function node_block($op = 'list', $delta = 0) {
*/
function node_feed($nodes = 0, $channel = array()) {
global $base_url;
- $languages = (function_exists('locale')) ? locale_supported_languages() : array();
+ $languages = (function_exists('locale')) ? locale_supported_languages() : array('name' => array());
if (!$nodes) {
$nodes = db_query_range('SELECT nid FROM {node} WHERE promote = 1 AND status = 1 ORDER BY created DESC', 0, 15);