mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 08:34:11 +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();
|
||||
$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();
|
||||
|
Loading…
Reference in New Issue
Block a user