diff options
author | Björn Schießle <schiessle@owncloud.com> | 2012-09-28 17:44:46 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2012-09-28 18:50:36 +0200 |
commit | f8f73e267550a46dc4cee5b025e83d786cddb1bb (patch) | |
tree | 4e3f77e51511112a1880c0118595a28eb52a1bba /lib/connector | |
parent | 5144d26088b98685a37c73c776a9a47203efa68a (diff) | |
download | nextcloud-server-f8f73e267550a46dc4cee5b025e83d786cddb1bb.tar.gz nextcloud-server-f8f73e267550a46dc4cee5b025e83d786cddb1bb.zip |
move back to "lastmodified" property since "getlastmodified" is protected by webdav
Diffstat (limited to 'lib/connector')
-rw-r--r-- | lib/connector/sabre/node.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php index 55fa0dfde66..bdedc030c88 100644 --- a/lib/connector/sabre/node.php +++ b/lib/connector/sabre/node.php @@ -23,8 +23,7 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IProperties { const GETETAG_PROPERTYNAME = '{DAV:}getetag'; - const LASTMODIFIED_PROPERTYNAME_DEPRECIATED = '{DAV:}lastmodified'; // FIXME: keept for the transition period, can be removed for OC 4.5.1 if the sync client update too - const GETLASTMODIFIED_PROPERTYNAME = '{DAV:}getlastmodified'; + const LASTMODIFIED_PROPERTYNAME = '{DAV:}lastmodified'; /** * The path to the current node @@ -151,9 +150,8 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr $query->execute( array( OC_User::getUser(), $this->path, $propertyName )); } } - else { //FIXME: first part of if statement can be removed together with the LASTMODIFIED_PROPERTYNAME_DEPRECIATED const for oc4.5.1 if the sync client was updated too - if( strcmp( $propertyName, self::LASTMODIFIED_PROPERTYNAME_DEPRECIATED) === 0 || - strcmp( $propertyName, self::GETLASTMODIFIED_PROPERTYNAME) === 0 ) { + else { + if( strcmp( $propertyName, self::LASTMODIFIED_PROPERTYNAME) === 0 ) { $this->touch($propertyValue); } else { if(!array_key_exists( $propertyName, $existing )) { |