get rid of annoying warning

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@669 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2009-09-22 20:59:59 +00:00
parent bd2e5d88a0
commit 23b199a406

View File

@ -141,6 +141,12 @@ $current_locale = get_locale();
$messages = array();
$output_encoding = array();
if(function_exists("date_default_timezone_set")) {
// TODO try to get timezone from config.php/session etc.
// autodetect timezone
@date_default_timezone_set(function_exists("date_default_timezone_get") ? @date_default_timezone_get() : "GMT");
}
function get_locale_links($href) {
global $current_locale;
$localeLinks = array();