Contribution Date
Technology
Contribution Project
Contribution Details
simple_comment_rate.module
----------------------------------------
line 40: $type = substr($comment->node_type, 13);
why are you doing this substring ?
in function simple_comment_rate_menu()
the title and description should be enclosed in t()
for variable_get('scr_choose_how_to_vote', 0) == 0) ? "ips" : "uids"
I feel it would be a better idea to store either 'ips' or 'uids' in the variable instead of 0/1
line 215, 235 & 261: unused variables.
simple_comment_rate.install
--------------------------------------
line 64 & 72: $query = db_insert('role_permission')
$query is not required.
Contribution Issue Link
Contribution Link
Files count
0
Patches count
0