diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-10-02 16:03:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-10-02 16:03:17 +0000 |
commit | c389c90529d45b33c21f55fc7b7f4539fcea762c (patch) | |
tree | 3ad0730e32a2cc9d57af693b170ee41265506a9b /modules | |
parent | ec75cf33fd083092b5b9f7b6f3f30fe0102dd734 (diff) | |
download | brdo-c389c90529d45b33c21f55fc7b7f4539fcea762c.tar.gz brdo-c389c90529d45b33c21f55fc7b7f4539fcea762c.tar.bz2 |
- Patch #144634 by chx: fixed critical bug that prevented language negotiation to work after/when drupal_goto() is called.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/aggregator/aggregator.pages.inc | 24 | ||||
-rw-r--r-- | modules/contact/contact.pages.inc | 4 | ||||
-rw-r--r-- | modules/user/user.admin.inc | 14 |
3 files changed, 21 insertions, 21 deletions
diff --git a/modules/aggregator/aggregator.pages.inc b/modules/aggregator/aggregator.pages.inc index f629d82bb..eae141570 100644 --- a/modules/aggregator/aggregator.pages.inc +++ b/modules/aggregator/aggregator.pages.inc @@ -27,11 +27,11 @@ function aggregator_page_source($arg1, $arg2 = NULL) { $feed = (object)$feed; drupal_set_title(check_plain($feed->title)); $feed_source = theme('aggregator_feed_source', $feed); - + // It is safe to include the fid in the query because it's loaded from the - // database by aggregator_feed_load. + // database by aggregator_feed_load. $items = aggregator_feed_items_load('SELECT * FROM {aggregator_item} WHERE fid = '. $feed->fid .' ORDER BY timestamp DESC, iid DESC'); - + return _aggregator_page_list($items, arg(3), $feed_source); } @@ -46,16 +46,16 @@ function aggregator_page_category($arg1, $arg2 = NULL) { drupal_add_feed(url('aggregator/rss/'. $category['cid']), variable_get('site_name', 'Drupal') .' '. t('aggregator - @title', array('@title' => $category['title']))); // It is safe to include the cid in the query because it's loaded from the - // database by aggregator_category_load. + // database by aggregator_category_load. $items = aggregator_feed_items_load('SELECT i.*, f.title AS ftitle, f.link AS flink FROM {aggregator_category_item} c LEFT JOIN {aggregator_item} i ON c.iid = i.iid LEFT JOIN {aggregator_feed} f ON i.fid = f.fid WHERE cid = '. $category['cid'] .' ORDER BY timestamp DESC, i.iid DESC'); - + return _aggregator_page_list($items, arg(3)); } /** * Load feed items by passing a sql query. */ -function aggregator_feed_items_load($sql) { +function aggregator_feed_items_load($sql) { $items = array(); if (isset($sql)) { $result = pager_query($sql, 20); @@ -82,7 +82,7 @@ function _aggregator_page_list($items, $op, $feed_source = '') { } else { // Assemble themed output. - $output = $feed_source; + $output = $feed_source; foreach ($items as $item) { $output .= theme('aggregator_item', $item); } @@ -106,7 +106,7 @@ function aggregator_categorize_items($items, $feed_source = '') { $categories = array(); $done = FALSE; $form['items'] = array(); - $form['categories'] = array('#tree' => TRUE); + $form['categories'] = array('#tree' => TRUE); foreach ($items as $item) { $form['items'][$item->iid] = array('#value' => theme('aggregator_item', $item)); $form['categories'][$item->iid] = array(); @@ -285,7 +285,7 @@ function aggregator_page_rss() { $sql = 'SELECT i.*, f.title AS ftitle, f.link AS flink FROM {aggregator_item} i INNER JOIN {aggregator_feed} f ON i.fid = f.fid ORDER BY i.timestamp DESC, i.iid DESC'; $result = db_query_range($sql, 0, variable_get('feed_default_items', 10)); } - + while ($item = db_fetch_object($result)) { $feeds[] = $item; } @@ -347,11 +347,11 @@ function aggregator_page_opml($cid = NULL) { else { $result = db_query('SELECT * FROM {aggregator_feed} ORDER BY title'); } - + while ($item = db_fetch_object($result)) { $feeds[] = $item; } - + return theme('aggregator_page_opml', $feeds); } @@ -429,7 +429,7 @@ function template_preprocess_aggregator_summary_item(&$variables) { */ function template_preprocess_aggregator_feed_source(&$variables) { $feed = $variables['feed']; - + $variables['source_icon'] = theme('feed_icon', $feed->url, t('!title feed', array('!title' => $feed->title))); $variables['source_image'] = $feed->image; $variables['source_description'] = aggregator_filter_xss($feed->description); diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc index ce7ad6796..9308ea4e5 100644 --- a/modules/contact/contact.pages.inc +++ b/modules/contact/contact.pages.inc @@ -25,9 +25,9 @@ function contact_site_page() { function contact_mail_page() { global $user; - + $form = $categories = array(); - + $result = db_query('SELECT cid, category, selected FROM {contact} ORDER BY weight, category'); while ($category = db_fetch_object($result)) { $categories[$category->cid] = $category->category; diff --git a/modules/user/user.admin.inc b/modules/user/user.admin.inc index fd9fdcc78..6744f140f 100644 --- a/modules/user/user.admin.inc +++ b/modules/user/user.admin.inc @@ -34,7 +34,7 @@ function user_admin($callback_arg = '') { /** * Form builder; Return form for user administration filters. - * + * * @ingroup forms * @see user_filter_form_submit(). */ @@ -486,7 +486,7 @@ function user_admin_settings() { /** * Menu callback: administer permissions. - * + * * @ingroup forms * @see user_admin_perm_submit(). * @see theme_user_admin_perm(). @@ -611,7 +611,7 @@ function theme_user_admin_perm($form) { /** * Menu callback: administer roles. - * + * * @ingroup forms * @see user_admin_role_validate(). * @see user_admin_role_submit(). @@ -859,7 +859,7 @@ function user_admin_access_check_submit($form, &$form_state) { /** * Menu callback: delete an access rule - * + * * @ingroup forms * @see user_admin_access_delete_confirm_submit(). */ @@ -904,7 +904,7 @@ function user_admin_access() { /** * Theme user administration overview. - * + * * @ingroup themeable */ function theme_user_admin_account($form) { @@ -973,7 +973,7 @@ function theme_user_admin_new_role($form) { /** * Theme user administration filter form. - * + * * @ingroup themeable */ function theme_user_filter_form($form) { @@ -986,7 +986,7 @@ function theme_user_filter_form($form) { /** * Theme user administration filter selector. - * + * * @ingroup themeable */ function theme_user_filters($form) { |