mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 09:58:04 +02:00
using GLOBALS, also helps php3 compat
This commit is contained in:
parent
7e6c8e5ab4
commit
41c87c6cff
@ -11,19 +11,17 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
global $phpgw_info,$phpgw;
|
if ($GLOBALS['phpgw_info']['user']['preferences']['infolog']['homeShowEvents'])
|
||||||
|
|
||||||
if ($phpgw_info['user']['preferences']['infolog']['homeShowEvents'])
|
|
||||||
{
|
{
|
||||||
$save_app = $phpgw_info['flags']['currentapp'];
|
$save_app = $GLOBALS['phpgw_info']['flags']['currentapp'];
|
||||||
$phpgw_info['flags']['currentapp'] = 'infolog';
|
$GLOBALS['phpgw_info']['flags']['currentapp'] = 'infolog';
|
||||||
|
|
||||||
$phpgw->translation->add_app('infolog');
|
$GLOBALS['phpgw']->translation->add_app('infolog');
|
||||||
|
|
||||||
global $filter;
|
global $filter;
|
||||||
$filter = 'own+open+today';
|
$filter = 'own+open+today';
|
||||||
$infolog = CreateObject('infolog.uiinfolog');
|
$infolog = CreateObject('infolog.uiinfolog');
|
||||||
$infolog->get_list(True);
|
$infolog->get_list(True);
|
||||||
|
|
||||||
$phpgw_info['flags']['currentapp'] = $save_app;
|
$GLOBALS['phpgw_info']['flags']['currentapp'] = $save_app;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user