View Issue Details

IDProjectCategoryView StatusLast Update
0009264mantisbtrsspublic2013-07-17 05:00
Reportermthibeault Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version1.1.1 
Target VersionFixed in Version 
Summary0009264: 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
Moved the auto-detect link in the header and added a missing quote.

Tagspatch

Relationships

related to 0016148 acknowledged RSS feed error display on IE 8,9,10 

Activities

2008-06-13 16:15

 

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();
 
rss_autodetect.patch (1,987 bytes)

Issue History

Date Modified Username Field Change
2008-06-13 16:15 mthibeault New Issue
2008-06-13 16:15 mthibeault File Added: rss_autodetect.patch
2008-06-13 23:02 vboctor Tag Attached: patch
2008-07-15 03:15 vboctor Status new => acknowledged
2013-07-05 08:24 atrol Relationship added related to 0016148