~aw/ubuntu/lucid/davical/trunk

« back to all changes in this revision

Viewing changes to inc/caldav-PROPFIND.php

  • Committer: Bazaar Package Importer
  • Author(s): Andrew McMillan
  • Date: 2009-04-11 00:08:31 UTC
  • Revision ID: james.westby@ubuntu.com-20090411000831-zc97ye8hni3ozfzm
Tags: 0.9.6.3
* General bug fixing.
* Added Italian locale from Alessandro De Zorzi
* Adjust timezone handling in regression testing (Markus Warg).
* Many fixes to caldav-client from Michael Rasmussen.
* Update caldav-client to use direct socket IO from Andres Obrero.
* Added dummy handler for POST CANCEL events for iCal compatibilty (Wolfgang Herget).
* Support usernames with spaces or punctuation.
* Correct errors in handling confidential events.
* Improved response to GET for calendar with a single event.
* Documentation corrections.
* Remove the misguided hide_todo configuration option.
* Fix a bug in hiding alarms.
* Deprecate 'collections_always_exist' config option and restrict it's scope.
* Updated French translation.
* Updated relational integrity constraints.
* Fix database versioning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
573
573
* subsidiary collections will also be got up to $depth
574
574
*/
575
575
function get_collection( $depth, $user_no, $collection_path ) {
576
 
  global $c, $request;
 
576
  global $session, $c, $request;
577
577
  $responses = array();
578
578
 
579
579
  dbg_error_log("PROPFIND","Getting collection: Depth %d, User: %d, Path: %s", $depth, $user_no, $collection_path );
606
606
    if( $qry->Exec("PROPFIND",__LINE__,__FILE__) && $qry->rows > 0 && $collection = $qry->Fetch() ) {
607
607
      $responses[] = collection_to_xml( $collection );
608
608
    }
609
 
    elseif ( $c->collections_always_exist ) {
 
609
    elseif ( $c->collections_always_exist && preg_match( "#^/$session->username/#", $collection_path) ) {
610
610
      dbg_error_log("PROPFIND","Using $c->collections_always_exist setting is deprecated" );
611
611
      $collection->dav_name = $collection_path;
612
612
      $collection->dav_etag = md5($collection_path);