Closed (fixed)
Project:
Comment edited
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2010 at 22:18 UTC
Updated:
24 Sep 2010 at 18:50 UTC
When i18n is installed there are several errors from the comment edited module. On line 220 of comment_edited.module the following line has an issue.
return i18nstrings("comment_edited:message_template", $template, $replacements);
This passes three arguments to the i18nstrings function with the third being $replacements.
function i18nstrings($name, $string, $langcode = NULL)
As you can see in the function definition if there is a third paramater it should be the langcode which it is not.
I believe what you meant to do was the following.
return i18nstrings("comment_edited:message_template", t($template, $replacements));
With the code as it is currently in dev I get three errors:
The above edit resolves this.
Comments
Comment #1
csavio commentedActually looking at that again you probably wanted the following:
Comment #2
snufkin commentedThanks, fixed in dev. Once I resolve the bug #896816: Hidden edit gone when editing own comments i'll roll a new stable release.