diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-16 18:06:27 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-16 18:06:27 +0000 |
commit | b038c605cda4426dd11443f7cfbe1c7a697bf723 (patch) | |
tree | ba8d3010e0812367c5884f6f06285da117469b3b /modules/aggregator | |
parent | 2035f1d48f24ade399657cc04116492241553ee3 (diff) | |
download | brdo-b038c605cda4426dd11443f7cfbe1c7a697bf723.tar.gz brdo-b038c605cda4426dd11443f7cfbe1c7a697bf723.tar.bz2 |
#189495 by myself, reviewed by Pasqualle: fix composit text used with t() in aggregator module
Diffstat (limited to 'modules/aggregator')
-rw-r--r-- | modules/aggregator/aggregator.pages.inc | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/modules/aggregator/aggregator.pages.inc b/modules/aggregator/aggregator.pages.inc index 08448de1f..e42fda715 100644 --- a/modules/aggregator/aggregator.pages.inc +++ b/modules/aggregator/aggregator.pages.inc @@ -299,16 +299,8 @@ function aggregator_page_rss() { * @ingroup themeable */ function theme_aggregator_page_rss($feeds, $category = NULL) { - drupal_set_header('Content-Type: application/rss+xml; charset=utf-8'); - $title = ''; - $url = ''; - if (isset($category)) { - $title = ' '. t('in category') .' '. check_plain($category->title); - $url = '/categories/'. $category->cid; - } - $items = ''; $feed_length = variable_get('feed_item_length', 'teaser'); foreach ($feeds as $feed) { @@ -328,11 +320,12 @@ function theme_aggregator_page_rss($feeds, $category = NULL) { } $site_name = variable_get('site_name', 'Drupal'); - $url = url('aggregator'. $url, array('absolute' => TRUE)); + $url = url((isset($category) ? 'aggregator/categories/'. $category->cid : 'aggregator'), array('absolute' => TRUE)); + $description = isset($category) ? t('@site_name - aggregated feeds in category @title', array('@site_name' => $site_name, '@title' => $category->title)) : t('@site_name - aggregated feeds', array('@site_name' => $site_name)); $output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; $output .= "<rss version=\"2.0\">\n"; - $output .= format_rss_channel($site_name .' '. t('aggregator'), $url, $site_name .' - '. t('aggregated feeds') . $title, $items); + $output .= format_rss_channel(t('@site_name aggregator', array('@site_name' => $site_name)), $url, $description, $items); $output .= "</rss>\n"; print $output; |