mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fix wrong namespace and replaced a couple more CreateObject
This commit is contained in:
parent
f0a739d7ed
commit
ac8cdda252
@ -92,10 +92,7 @@ class calendar_datasource extends datasource
|
||||
|
||||
if (!is_array($this->pm_config))
|
||||
{
|
||||
$c =& CreateObject('phpgwapi.config','projectmanager');
|
||||
$c->read_repository();
|
||||
$this->pm_config = $c->config_data;
|
||||
unset($c);
|
||||
$this->pm_config = Api\Config::read('projectmanager');
|
||||
if (!$this->pm_config['hours_per_workday']) $this->pm_config['hours_per_workday'] = 8;
|
||||
}
|
||||
$ds['pe_planned_time'] -= $nights * 60 * (24 - $this->pm_config['hours_per_workday']);
|
||||
|
@ -577,7 +577,7 @@ class calendar_merge extends Api\Storage\Merge
|
||||
$replacements = $this->contact_replacements(substr($participant,1),'');
|
||||
break;
|
||||
case 'r':
|
||||
if (is_null(self::$resources)) self::$resources = CreateObject('resources.resources_bo');
|
||||
if (is_null(self::$resources)) self::$resources = new resources_bo();
|
||||
if (($resource = self::$resources->read(substr($participant,1))))
|
||||
{
|
||||
foreach($resource as $name => $value)
|
||||
|
@ -788,7 +788,7 @@ class calendar_uiforms extends calendar_ui
|
||||
calendar_so::split_status($status,$q,$r);
|
||||
if ($uid[0] != 'c' && $uid[0] != 'e' && $uid != $this->bo->user && $status != 'U')
|
||||
{
|
||||
$preferences = new Preferences($uid);
|
||||
$preferences = new Api\Preferences($uid);
|
||||
$part_prefs = $preferences->read_repository();
|
||||
switch ($part_prefs['calendar']['reset_stati'])
|
||||
{
|
||||
@ -2795,7 +2795,7 @@ class calendar_uiforms extends calendar_ui
|
||||
calendar_so::split_status($status,$q,$r);
|
||||
if ($uid[0] != 'c' && $uid[0] != 'e' && $uid != $this->bo->user && $status != 'U')
|
||||
{
|
||||
$preferences = new Preferenes($uid);
|
||||
$preferences = new Api\Preferenes($uid);
|
||||
$part_prefs = $preferences->read_repository();
|
||||
switch ($part_prefs['calendar']['reset_stati'])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user