diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-07-04 22:47:28 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-07-04 22:47:28 +0000 |
commit | 5642117bed5b6a17754d2c85e554ff83196e5f15 (patch) | |
tree | cb2fc64228803bb66bd5035b8ee0ad4496dcf655 | |
parent | 8a65b86d1c31a077485eae402af180de7bab168f (diff) | |
download | brdo-5642117bed5b6a17754d2c85e554ff83196e5f15.tar.gz brdo-5642117bed5b6a17754d2c85e554ff83196e5f15.tar.bz2 |
#112374 by Wesley Tanaka: drupal_add_feed() should not allow adding the same feed more then once to the page
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc index a2c18d4fa..3a8d48fcd 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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', |