diff options
Diffstat (limited to 'inc/HTTP/WebDAV/Server/Filesystem.php')
-rwxr-xr-x | inc/HTTP/WebDAV/Server/Filesystem.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/inc/HTTP/WebDAV/Server/Filesystem.php b/inc/HTTP/WebDAV/Server/Filesystem.php index e2a672ee39e..35c9f362a54 100755 --- a/inc/HTTP/WebDAV/Server/Filesystem.php +++ b/inc/HTTP/WebDAV/Server/Filesystem.php @@ -32,9 +32,9 @@ | POSSIBILITY OF SUCH DAMAGE. | +----------------------------------------------------------------------+ */ - require_once "../../../lib_base.php"; - oc_require_once "HTTP/WebDAV/Server.php"; - oc_require_once "System.php"; + require_once("../inc/lib_base.php"); + oc_require_once("HTTP/WebDAV/Server.php"); + oc_require_once("System.php"); /** * Filesystem access using WebDAV @@ -726,13 +726,13 @@ $where = "WHERE path = '$options[path]' AND token = '$options[update]'"; $query = "SELECT owner, exclusivelock FROM locks $where"; - $res = OC_DB:query($query); - $row = OC_DB:fetch_assoc($res); + $res = OC_DB::query($query); + $row = OC_DB::fetch_assoc($res); OC_DB:free_result($res); if (is_array($row)) { $query = "UPDATE locks SET expires = '$options[timeout]', modified = ".time()." $where"; - OC_DB:query($query); + OC_DB::query($query); $options['owner'] = $row['owner']; $options['scope'] = $row["exclusivelock"] ? "exclusive" : "shared"; |