mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
"missing commit from tz selection"
This commit is contained in:
parent
4f69a5d1b0
commit
1673f556d9
14
index.php
14
index.php
@ -55,6 +55,20 @@ $GLOBALS['egw_info'] = array(
|
|||||||
);
|
);
|
||||||
include('./header.inc.php');
|
include('./header.inc.php');
|
||||||
|
|
||||||
|
// user changed timezone
|
||||||
|
if (isset($_GET['tz']))
|
||||||
|
{
|
||||||
|
egw_time::setUserPrefs($_GET['tz']); // throws exception, if tz is invalid
|
||||||
|
|
||||||
|
$GLOBALS['egw']->preferences->add('common','tz',$_GET['tz']);
|
||||||
|
$GLOBALS['egw']->preferences->save_repository();
|
||||||
|
|
||||||
|
if (($referer = common::get_referer()))
|
||||||
|
{
|
||||||
|
egw::redirect_link($referer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Check if we are using windows or normal webpage
|
// Check if we are using windows or normal webpage
|
||||||
$windowed = false;
|
$windowed = false;
|
||||||
$tpl_info = EGW_SERVER_ROOT . '/phpgwapi/templates/' . basename($GLOBALS['egw_info']['user']['preferences']['common']['template_set']) . '/setup/setup.inc.php';
|
$tpl_info = EGW_SERVER_ROOT . '/phpgwapi/templates/' . basename($GLOBALS['egw_info']['user']['preferences']['common']['template_set']) . '/setup/setup.inc.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user