mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
set line endings of most text files to LF
* Changed the end-of-line encodings of all non-Windows-related and non-autogenerated text files to use UNIX LF (lots of them had mixed LF/CRLF). Conflicts: inc/caldav-PUT-functions.php
This commit is contained in:
1 parent
92c15bed64
commit
8e60bb3124
30 files changed
+813
-794
No files matched your search
+21
-21
@@ -450,33 +450,33 @@ EOSQL;
|
||||
*/
|
||||
public function whatChangedSince( $some_old_token ) {
|
||||
$params = array( ':collection_id' => $this->collection_id() );
|
||||
if ( $some_old_token == 0 || empty($some_old_token) ) {
|
||||
$sql = <<<EOSQL
|
||||
if ( $some_old_token == 0 || empty($some_old_token) ) {
|
||||
$sql = <<<EOSQL
|
||||
SELECT calendar_item.*, caldav_data.*, addressbook_resource.*, 201 AS sync_status,
|
||||
COALESCE(addressbook_resource.uid,calendar_item.uid) AS uid
|
||||
FROM caldav_data
|
||||
LEFT JOIN calendar_item USING (dav_id)
|
||||
LEFT JOIN addressbook_resource USING (dav_id)
|
||||
WHERE caldav_data.collection_id = :collection_id
|
||||
ORDER BY caldav_data.collection_id, caldav_data.dav_id
|
||||
EOSQL;
|
||||
}
|
||||
LEFT JOIN calendar_item USING (dav_id)
|
||||
LEFT JOIN addressbook_resource USING (dav_id)
|
||||
WHERE caldav_data.collection_id = :collection_id
|
||||
ORDER BY caldav_data.collection_id, caldav_data.dav_id
|
||||
EOSQL;
|
||||
}
|
||||
else {
|
||||
$params[':sync_token'] = $some_old_token;
|
||||
$sql = <<<EOSQL
|
||||
$params[':sync_token'] = $some_old_token;
|
||||
$sql = <<<EOSQL
|
||||
SELECT calendar_item.*, caldav_data.*, addressbook_resource.*, sync_changes.*,
|
||||
COALESCE(addressbook_resource.uid,calendar_item.uid) AS uid
|
||||
FROM sync_changes
|
||||
LEFT JOIN caldav_data USING (collection_id,dav_id)
|
||||
LEFT JOIN calendar_item USING (collection_id,dav_id)
|
||||
LEFT JOIN addressbook_resource USING (dav_id)
|
||||
WHERE sync_changes.collection_id = :collection_id
|
||||
AND sync_time >= (SELECT modification_time FROM sync_tokens WHERE sync_token = :sync_token)
|
||||
COALESCE(addressbook_resource.uid,calendar_item.uid) AS uid
|
||||
FROM sync_changes
|
||||
LEFT JOIN caldav_data USING (collection_id,dav_id)
|
||||
LEFT JOIN calendar_item USING (collection_id,dav_id)
|
||||
LEFT JOIN addressbook_resource USING (dav_id)
|
||||
WHERE sync_changes.collection_id = :collection_id
|
||||
AND sync_time >= (SELECT modification_time FROM sync_tokens WHERE sync_token = :sync_token)
|
||||
ORDER BY sync_changes.collection_id, sync_changes.dav_id, sync_changes.sync_time
|
||||
EOSQL;
|
||||
|
||||
}
|
||||
$qry = new AwlQuery($sql, $params );
|
||||
EOSQL;
|
||||
|
||||
}
|
||||
$qry = new AwlQuery($sql, $params );
|
||||
|
||||
$changes = array();
|
||||
if ( $qry->Exec('WritableCollection') && $qry->rows() ) {
|
||||
|
||||
Reference in new issue
Block a user