Commit 543d8b72 authored by Dries's avatar Dries

- Patch #9972 by njivy: modified node_feed() for the instances where locale is...

- 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.
parent 1831e1b6
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment