Commit 5642117b authored by Gábor Hojtsy's avatar Gábor Hojtsy

#112374 by Wesley Tanaka: drupal_add_feed() should not allow adding the same...

#112374 by Wesley Tanaka: drupal_add_feed() should not allow adding the same feed more then once to the page
parent 8a65b86d
......@@ -162,7 +162,7 @@ function drupal_get_headers() {
function drupal_add_feed($url = NULL, $title = '') {
static $stored_feed_links = array();
if (!is_null($url)) {
if (!is_null($url) && !isset($stored_feed_links[$url])) {
$stored_feed_links[$url] = theme('feed_icon', $url, $title);
drupal_add_link(array('rel' => 'alternate',
......
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