Page 1 of 1

setlocale() error in script.. old module in new phpnuke..

Posted: Wed Oct 08, 2003 11:21 am
by snek_one
I was wondering if anybody could help me with this.. I am trying to install an old module into a new version of phpnuke..

Code: Select all

setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead.
This is the line the error points to:

Code: Select all

setlocale ("LC_TIME", "$locale");
Now, has phpnuke changed that $locale does not exist anymore or something? I can't find anything wrong with the actual script, just that the variable seems not to exist..

Could anybody explain to me what exactly this is supposed to do??

Posted: Fri Oct 10, 2003 5:15 am
by twigletmac
Try changing:

Code: Select all

setlocale ("LC_TIME", "$locale");
to

Code: Select all

setlocale(LC_TIME, $locale);
Mac