![]() |
|
getUserLocale() - PHP Warning when changing language - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: getUserLocale() - PHP Warning when changing language (/thread-9501.html) |
getUserLocale() - PHP Warning when changing language - tunafish - 2012-01-17 I have installed Zenphoto version 1.4.2 [8956] (Official Build) When change my language (the URL get's ?locale=en_US variable added) and I use `` inside the HTML body I get the This does not happen when I do this outside the HTML.. getUserLocale() - PHP Warning when changing language - sbillard - 2012-01-18 Yes, that would be the case. That function does setup of the locale which must be done before any output has been sent. But you really sould not even be using the function--it is intended for the runtime and has already been executed by the time your theme is running. The current locale is getUserLocale() - PHP Warning when changing language - tunafish - 2012-01-18 Aha! Missed that. Cheers! getUserLocale() - PHP Warning when changing language - vincent3569 - 2012-01-18 thanks sbillard for this good tip !! I have these warning too in my guestbook page (wich was call getUserLocale). |