At line 50
if (arg(0) == 'node' && is_numeric(arg(1)) && variable_get('commentrss_node', TRUE)) {
should read
if (arg(0) == 'node' && is_numeric(arg(1))) {
if (variable_get('commentrss_node', TRUE)) {
otherwise, if 'commentrss_node' == FALSE the logic incorrectly falls through to line 57
elseif (arg(0) == 'node' && variable_get('commentrss_site', TRUE)) {
and the feed 'crss' gets incorrectly appended to an individual node
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | contrib-5.commentrss.feed-list4.junyor.patch | 5.76 KB | junyor |
| #3 | contrib-5.commentrss.feed-list3.junyor.patch | 2.9 KB | junyor |
| #2 | contrib-5.commentrss.feed-list2.junyor.patch | 2.82 KB | junyor |
| #1 | contrib-5.commentrss.feed-list.junyor.patch | 2.6 KB | junyor |
Comments
Comment #1
junyor commentedThe code may be wrong, but it's fine to have multiple feeds announced per page. The attached implements a fix:
* Fixes the logic for adding feeds, allowing both the all comments and node-specific feeds on the same page
* Fixes a bug where the wrong variable was checked for showing the vocabulary_list feed
* Adds the site name to all generated feed titles
Comment #2
junyor commentedThis updated patch outputs absolute URLs for the feeds, to be consistent with Core.
Comment #3
junyor commentedAnd another with slightly better naming for the taxonomy feed.
Comment #4
junyor commentedOne more. It looks like I had forgotten to update the title and description output with the feed. Before, just the LINK element was updated.
Comment #5
gábor hojtsyPatch has very straneg/bad artifacts like:
- Comments from the “@vocab†Vocabulary
- Comments from the “@term†Category
etc. These bad UTF chars are not nice, and I don't understand the capitalization mis-sentence. Also, why mix unrelated changes, when we are fixing an issue with mis-linking to RSS feeds?
Comment #6
gábor hojtsyI just committed a 5.x-2.x dev version of the module, which has this bug fixed as well. The site RSS feed has multiple options on where it should be added, and that's strictly adhered to. Please test that and reopen if you still have issues.
http://drupal.org/cvs?commit=113501
Comment #7
junyor commentedYeah, I guess I should have taken the naming stuff to a different issue. Sorry about that.
I apologize if this is a stupid question, but isn't there a logic problem in the switch statement in commentrss_menu? The COMMENTRSS_SITE_FRONT_AND_NODE_PAGE case won't work if the /node page isn't the front page, but that's not how the setting is described.
Comment #8
gábor hojtsyGood catch! You mean to replace:
with:
(note the && replaced with ||), so that it really only breaks if it is not the front page or not the node page?
Comment #9
junyor commentedExactly.
Comment #10
gábor hojtsyCommitted, thanks!
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.