mirror of
https://github.com/Mibew/java.git
synced 2025-01-22 17:40:35 +03:00
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:
parent
bd2e5d88a0
commit
23b199a406
@ -141,6 +141,12 @@ $current_locale = get_locale();
|
|||||||
$messages = array();
|
$messages = array();
|
||||||
$output_encoding = 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) {
|
function get_locale_links($href) {
|
||||||
global $current_locale;
|
global $current_locale;
|
||||||
$localeLinks = array();
|
$localeLinks = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user