Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was going over the Drupal code and noticed that the comments for flood_is_allowed() list the second parameter as $number, but in the code its named $threshold. Not a big deal, but it should probably be fixed.
Comment | File | Size | Author |
---|---|---|---|
#1 | 293322.diff | 580 bytes | minorOffense |
Comments
Comment #1
minorOffense CreditAttribution: minorOffense commentedI've created a patch
Comment #2
minorOffense CreditAttribution: minorOffense commentedComment #3
jhodgdonThis patch applies cleanly to the D6 branch, and appears correct to me.
Comment #4
jhodgdonComment #5
Gábor HojtsyLet's apply first to Drupal 7, so we are not introducing regressions.
Comment #6
jhodgdonPatch looks good for D7 as well. Status "reviewed and tested" should stand.
Comment #7
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #8
jhodgdonSomeone should be able to commit the patch from #1 to D6 as well. At least, it applied cleanly a couple of days ago, and I doubt much has changed since then.
Comment #9
Gábor HojtsyThanks, committed to Drupal 6.