diff options
author | David Rothstein <drothstein@gmail.com> | 2014-11-02 23:59:34 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-11-02 23:59:34 -0500 |
commit | 766312e23cfe2f7e4fc12ef9c4d332757f3b9a5f (patch) | |
tree | 6c71af6804c26f8a5671df443f705cbafe7437e7 /modules/node | |
parent | 2e235b51529b76c93930d1d2c84170d7d3064ba6 (diff) | |
download | brdo-766312e23cfe2f7e4fc12ef9c4d332757f3b9a5f.tar.gz brdo-766312e23cfe2f7e4fc12ef9c4d332757f3b9a5f.tar.bz2 |
Issue #1640404 by er.pushpinderrana, dcam, amit.drupal, hass | versvs: Fixed Use format_username() in node_feed().
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index e5b716630..dbb1a6504 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -2599,9 +2599,10 @@ function node_feed($nids = FALSE, $channel = array()) { $node->link = url("node/$node->nid", array('absolute' => TRUE)); $node->rss_namespaces = array(); + $account = user_load($node->uid); $node->rss_elements = array( array('key' => 'pubDate', 'value' => gmdate('r', $node->created)), - array('key' => 'dc:creator', 'value' => $node->name), + array('key' => 'dc:creator', 'value' => format_username($account)), array('key' => 'guid', 'value' => $node->nid . ' at ' . $base_url, 'attributes' => array('isPermaLink' => 'false')) ); |