mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Change usage of deprecated CreateObject() to autoloadable class names
This commit is contained in:
parent
76c537b63a
commit
962f0fa9d6
@ -788,7 +788,7 @@ class calendar_uiforms extends calendar_ui
|
|||||||
calendar_so::split_status($status,$q,$r);
|
calendar_so::split_status($status,$q,$r);
|
||||||
if ($uid[0] != 'c' && $uid[0] != 'e' && $uid != $this->bo->user && $status != 'U')
|
if ($uid[0] != 'c' && $uid[0] != 'e' && $uid != $this->bo->user && $status != 'U')
|
||||||
{
|
{
|
||||||
$preferences = CreateObject('phpgwapi.preferences',$uid);
|
$preferences = new Preferences($uid);
|
||||||
$part_prefs = $preferences->read_repository();
|
$part_prefs = $preferences->read_repository();
|
||||||
switch ($part_prefs['calendar']['reset_stati'])
|
switch ($part_prefs['calendar']['reset_stati'])
|
||||||
{
|
{
|
||||||
@ -2795,7 +2795,7 @@ class calendar_uiforms extends calendar_ui
|
|||||||
calendar_so::split_status($status,$q,$r);
|
calendar_so::split_status($status,$q,$r);
|
||||||
if ($uid[0] != 'c' && $uid[0] != 'e' && $uid != $this->bo->user && $status != 'U')
|
if ($uid[0] != 'c' && $uid[0] != 'e' && $uid != $this->bo->user && $status != 'U')
|
||||||
{
|
{
|
||||||
$preferences = CreateObject('phpgwapi.preferences',$uid);
|
$preferences = new Preferenes($uid);
|
||||||
$part_prefs = $preferences->read_repository();
|
$part_prefs = $preferences->read_repository();
|
||||||
switch ($part_prefs['calendar']['reset_stati'])
|
switch ($part_prefs['calendar']['reset_stati'])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user