(sorry for my english)
Sorry if duplicate.
views_handler_field.inc
line: "$title = t(ucwords($type));"
t() call is redundant and useless.
By the way ucwords() call too.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 485296_overhead.patch | 1 KB | deekayen |
(sorry for my english)
Sorry if duplicate.
views_handler_field.inc
line: "$title = t(ucwords($type));"
t() call is redundant and useless.
By the way ucwords() call too.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 485296_overhead.patch | 1 KB | deekayen |
Comments
Comment #1
liquixis commentedAlso:
"views_handler_field.inc" -> get_render_tokens()
line "$options = array();" is redundant and useless.
True for 2.5
Comment #2
deekayen commentedAttached patch removes the t() and the $options line. Looks like the $options code block might have been copied from options_form(), where $options is used, but in the case of get_render_tokens(), $options isn't used anywhere in the function before or after it is initialized.
Comment #3
liquixis commenteddeekayen, thanks for the patch
Comment #4
merlinofchaos commentedFixed in 2.x and 3.x branches. The ucwords() was also unnecessary, so at that point I just removed the use of $title altogether.