2017-12-30, 02:36 PM
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:
So that on the first iteration it is set to this:
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.
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]