[Rejected] Language variables with spritf keeps first value and all language vars.
#4
Okay Whiteneo, I spent some time this morning and was able to track down the problem.

In inc/plugins/dnt_post_rate.php on line 860 (and 861 in the commented line), you are overwriting this language variable:

$l['pcl_total'] = '<span style="display:block">This post has been rated {1} times.';

So that on the first iteration it is set to this:

$l['pcl_total'] = '<span style="display:block">This post has been rated 6 times.';

Then the next call to MyLanguage::sprintf cannot replace the {1} because it isn't there any more.

To fix, just assign to a variable instead of assigning back to the language variable.
[retired]
Reply


Messages In This Thread
RE: Language variables with spritf keeps first value and all language vars. - by Wildcard - 2017-12-30, 02:36 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)