Bug in serendipity_plugin_comments.php
Posted: Fri Sep 19, 2003 11:52 pm
I'm running the CVS version of Serendipity (09/19/03), the serendipity_plugin_comments.php generates the following errors:
I searched for setlocale in the directory, and the only place that uses setlocale is this plugin:
The second error is a foreach database access error, I've not been able to fix it yet, if I do I'll post what I did.
Take care,
--Brian
Code: Select all
Warning: Wrong parameter count for setlocale() in /home/virtual/site21/fst/var/www/html/mutant/plugins/serendipity_plugin_comments/serendipity_plugin_comments.php on line 95
Warning: Invalid argument supplied for foreach() in /home/virtual/site21/fst/var/www/html/mutant/plugins/serendipity_plugin_comments/serendipity_plugin_comments.php on line 116Code: Select all
> find ./ -type f -exec grep -HI "setlocale" {} \;
./plugins/serendipity_plugin_comments/serendipity_plugin_comments.php: $loc = setlocale(LC_ALL, 'de_DE', 'de_DE@euro', 'de', 'ge');
./plugins/serendipity_plugin_comments/serendipity_plugin_comments.php: $loc = setlocale(LC_ALL, 'en_US', 'en_EN', 'en', 'us');Take care,
--Brian