forked from extern/egroupware
fixed warning of calling createRowID static with incompatible $this, it work before because mail_ui as well as mail_compose define $this->mail_bo
This commit is contained in:
parent
f01cfd4a41
commit
8c3360cda9
@ -110,6 +110,7 @@ class mail_compose
|
||||
*/
|
||||
function getToolbarActions($content)
|
||||
{
|
||||
$group = 0;
|
||||
$actions = array(
|
||||
'send' => array(
|
||||
'caption' => 'Send',
|
||||
@ -1526,7 +1527,7 @@ class mail_compose
|
||||
}
|
||||
}
|
||||
// if the message is located within the draft folder, add it as last drafted version (for possible cleanup on abort))
|
||||
if ($mail_bo->isDraftFolder($_folder)) $this->sessionData['lastDrafted'] = mail_ui::createRowID($_folder, $_uid);//array('uid'=>$_uid,'folder'=>$_folder);
|
||||
if ($mail_bo->isDraftFolder($_folder)) $this->sessionData['lastDrafted'] = mail_ui::generateRowID($this->mail_bo->profileID, $_folder, $_uid);//array('uid'=>$_uid,'folder'=>$_folder);
|
||||
$this->sessionData['uid'] = $_uid;
|
||||
$this->sessionData['messageFolder'] = $_folder;
|
||||
$this->sessionData['isDraft'] = true;
|
||||
@ -2455,7 +2456,7 @@ class mail_compose
|
||||
$messageUid = ($messageUid===true ? $status['uidnext'] : $messageUid);
|
||||
if (is_array($this->mail_bo->getMessageHeader($messageUid, '',false, false, $folder)))
|
||||
{
|
||||
$draft_id = mail_ui::createRowID($folder, $messageUid);
|
||||
$draft_id = mail_ui::generateRowID($this->mail_bo->profileID, $folder, $messageUid);
|
||||
if ($content['lastDrafted'] != $draft_id && isset($content['lastDrafted']))
|
||||
{
|
||||
$dhA = mail_ui::splitRowID($content['lastDrafted']);
|
||||
@ -3090,7 +3091,7 @@ class mail_compose
|
||||
* @param int $_searchStringLength
|
||||
* @param boolean $_returnList
|
||||
* @param int $_mailaccountToSearch
|
||||
* @param boolean $_noPrefixID = false, if set to true folders name does not get prefixed by account id
|
||||
* @param boolean $_noPrefixId = false, if set to true folders name does not get prefixed by account id
|
||||
* @return type
|
||||
*/
|
||||
function ajax_searchFolder($_searchStringLength=2, $_returnList=false, $_mailaccountToSearch=null, $_noPrefixId=false) {
|
||||
|
Loading…
Reference in New Issue
Block a user