Change usage of deprecated CreateObject() to autoloadable class names

This commit is contained in:
nathangray 2016-07-25 16:41:47 -06:00
parent 76c537b63a
commit 962f0fa9d6

View File

@ -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'])
{ {