fixed PHP Fatal error " Call to undefined method emailadmin_imapbase::subscribe" since r48090

This commit is contained in:
Ralf Becker 2014-08-18 10:33:22 +00:00
parent e47db95be7
commit 947f6b1551

View File

@ -664,7 +664,7 @@ class mail_ui
//Change the mail_bo object to related profileId
$this->changeProfile($_acc_id);
if($this->mail_bo->subscribe($_folderName, $_status))
if($this->mail_bo->icServer->subscribeMailbox($_folderName, $_status))
{
$this->mail_bo->resetFolderObjectCache($_acc_id);
$this->ajax_reloadNode($_acc_id,!$this->mail_bo->mailPreferences['showAllFoldersInFolderPane']);
@ -3439,7 +3439,7 @@ class mail_ui
}
else
{
$rv = $this->mail_bo->subscribe($folder, false);
$rv = $this->mail_bo->icServer->subscribeMailbox($folder, false);
$fragments[$profileID.self::$delimiter.$folder] = substr($folder,strlen($folderName));
}
}
@ -3454,8 +3454,8 @@ class mail_ui
{
$this->mail_bo->resetFolderObjectCache($profileID);
//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
$rv = $this->mail_bo->subscribe($newFolderName, true);
$rv = $this->mail_bo->subscribe($folderName, false);
$rv = $this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
$rv = $this->mail_bo->icServer->subscribeMailbox($folderName, false);
$success = true;
}
}
@ -3479,7 +3479,7 @@ class mail_ui
}
else
{
$rv = $this->mail_bo->subscribe($folder, true);
$rv = $this->mail_bo->icServer->subscribeMailbox($folder, true);
}
}
//error_log(__METHOD__.__LINE__.' Fetched Subfolders->'.array2string($subFolders));
@ -3642,7 +3642,7 @@ class mail_ui
}
else
{
$rv = $this->mail_bo->subscribe($folder, false);
$rv = $this->mail_bo->icServer->subscribeMailbox($folder, false);
}
}
}
@ -3655,8 +3655,8 @@ class mail_ui
{
$this->mail_bo->resetFolderObjectCache($profileID);
//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
$rv = $this->mail_bo->subscribe($newFolderName, true);
$rv = $this->mail_bo->subscribe($folderName, false);
$rv = $this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
$rv = $this->mail_bo->icServer->subscribeMailbox($folderName, false);
$this->mail_bo->resetFolderObjectCache($profileID);
$success = true;
}
@ -3681,7 +3681,7 @@ class mail_ui
}
else
{
$rv = $this->mail_bo->subscribe($folder, true);
$rv = $this->mail_bo->icServer->subscribeMailbox($folder, true);
}
}
//error_log(__METHOD__.__LINE__.' Fetched Subfolders->'.array2string($subFolders));