Commit 08eb55f4 authored by catch's avatar catch

Issue #2177645 by joelpittet, InternetDevels: Replace theme() with drupal_render() in common.inc.

parent 6808c401
......@@ -374,9 +374,13 @@ function drupal_add_feed($url = NULL, $title = '') {
$stored_feed_links = &drupal_static(__FUNCTION__, array());
if (isset($url)) {
$stored_feed_links[$url] = theme('feed_icon', array('url' => $url, 'title' => $title));
$feed_icon = array(
'#theme' => 'feed_icon',
'#url' => $url,
'#title' => $title,
);
$build['#attached']['drupal_add_html_head_link'][][] = array(
$feed_icon['#attached']['drupal_add_html_head_link'][][] = array(
'rel' => 'alternate',
'type' => 'application/rss+xml',
'title' => $title,
......@@ -384,7 +388,8 @@ function drupal_add_feed($url = NULL, $title = '') {
// output by Drupal.
'href' => url($url, array('absolute' => TRUE)),
);
drupal_render($build);
$stored_feed_links[$url] = drupal_render($feed_icon);
}
return $stored_feed_links;
}
......
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