View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0009264 | mantisbt | rss | public | 2008-06-13 16:15 | 2013-07-17 05:00 |
| Reporter | mthibeault | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | acknowledged | Resolution | open | ||
| Product Version | 1.1.1 | ||||
| Summary | 0009264: RSS Auto-detect is not working on IE and Firefox | ||||
| Description | RSS Auto-detect is broken. It is possible to click on the RSS icon on the Mantis Web page, but Internet Explorer 7 and Firefox 2 are not able to auto-detect the feed. | ||||
| Additional Information | rss_autodetect.patch, Patch against Revision 5360 | ||||
| Tags | patch | ||||
| Attached Files | rss_autodetect.patch (1,987 bytes)
Index: mantisbt/core/html_api.php
===================================================================
--- mantisbt/core/html_api.php (revision 5360)
+++ mantisbt/core/html_api.php (working copy)
@@ -97,7 +97,7 @@
global $g_rss_feed_url;
if ( $g_rss_feed_url !== null ) {
- echo '<link rel="alternate" type="application/rss+xml" title="RSS" href="', $g_rss_feed_url, ' />';
+ echo '<link rel="alternate" type="application/rss+xml" title="Mantis Issues" href="', $g_rss_feed_url, '" />' . "\n";
}
}
@@ -105,6 +105,14 @@
# Print the part of the page that comes before meta redirect tags should
# be inserted
function html_page_top1( $p_page_title = null ) {
+ $t_rss_enabled = config_get( 'rss_enabled' );
+ if ( OFF != $t_rss_enabled ) {
+ if ( auth_is_user_authenticated() ) {
+ $t_project_id = helper_get_current_project();
+ $t_rss_link = rss_get_news_feed_url( $t_project_id );
+ html_set_rss_link( $t_rss_link );
+ }
+ }
html_begin();
html_head_begin();
html_css();
@@ -113,7 +121,7 @@
html_rss_link();
$t_favicon_image = config_get( 'favicon_image' );
if ( !is_blank( $t_favicon_image ) ) {
- echo '<link rel="shortcut icon" href="', helper_mantis_url( $t_favicon_image ), '" type="image/x-icon" />';
+ echo '<link rel="shortcut icon" href="', helper_mantis_url( $t_favicon_image ), '" type="image/x-icon" />' . "\n";
}
html_title( $p_page_title );
html_head_javascript();
Index: mantisbt/main_page.php
===================================================================
--- mantisbt/main_page.php (revision 5360)
+++ mantisbt/main_page.php (working copy)
@@ -38,15 +38,6 @@
$f_offset = gpc_get_int( 'offset', 0 );
- $t_project_id = helper_get_current_project();
-
- $t_rss_enabled = config_get( 'rss_enabled' );
-
- if ( OFF != $t_rss_enabled ) {
- $t_rss_link = rss_get_news_feed_url( $t_project_id );
- html_set_rss_link( $t_rss_link );
- }
-
html_page_top1();
html_page_top2();
| ||||
| related to | 0016148 | acknowledged | RSS feed error display on IE 8,9,10 |