Patch for problems found in code review

stella - October 6, 2008 - 13:54
Project:Node comments
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

CivicActions is reviewing and upgrading multiple modules for use on client sites. Attached is a patch for problems found in relation to differences between Drupal 5 and Drupal 6.

The changes cover the following areas:

For the 2nd one, there is one instance of the comment_form_location variable which I didn't fix. It still needs to be corrected, but I was unsure how you wanted to handle it, since the node type isn't available in the function in which it is used. It appears on line 160 of nodecomment.module.

Cheers,
Stella

AttachmentSize
nodecomment_upgradeD6_0.patch4.99 KB

#1

catch - October 6, 2008 - 14:16
Status:patch (code needs review)» patch (reviewed & tested by the community)

This applies cleanly and everything looks good. Marking RTBC.

#2

sirkitree - October 6, 2008 - 16:57

Thanks stella and catch.

stella, regarding the instance of comment_form_location on the settings form, this setting applies to all content types and I don't think we really want to have a separate setting for each content type a site has, do we?

#3

stella - October 6, 2008 - 17:09

sirkitree: the thing is that comment_form_location was a variable provided by core in Drupal 5. It no longer exists in Drupal 6, so you can't use it. Drupal 6 now has separate comment settings for each content type. I'm afraid it's not a matter of which we would prefer to have.

#4

sirkitree - October 17, 2008 - 04:25
Status:patch (reviewed & tested by the community)» fixed

#5

stella - October 17, 2008 - 08:28
Status:fixed» active

There is still one usage of the deprecated variable 'comment_form_location' on line 160 of nodecomment.module

 
 

Drupal is a registered trademark of Dries Buytaert.