phpgwapi/atualizar24: caldav-MOVE.php.diff

File caldav-MOVE.php.diff, 939 bytes (added by douglas, 9 years ago)
  • caldav-MOVE.php

    old new  
    108108$src_user_no = $src->GetProperty('user_no'); 
    109109$dst_user_no = $dest->GetProperty('user_no'); 
    110110 
     111/////Expresso 
     112if(strpos($request->user_agent, 'ExpressoLivre') === false) //Ignorar eventos do expresso 
     113{ 
     114   $expresso = 'PATH_DO_SEU_EXPRESSO'; 
     115   include_once($expresso.'/prototype/api/controller.php'); 
     116   include_once($expresso.'/prototype/modules/calendar/interceptors/DAViCalAdapter.php'); 
     117 
     118   $src_nameA = explode('/', $src_name); 
     119   $dst_nameA = explode('/', $dst_name); 
     120 
     121   DAViCalAdapter::move($src_nameA[ (count($src_nameA)-2) ],$dst_nameA[ (count($dst_nameA)-2) ],$dest->GetProperty('username')); 
     122} 
     123/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 
     124 
    111125$cache = getCacheInstance(); 
    112126$cachekeys = array(); 
    113127