Merge pull request #272 from owncloud/master-query-fix

Respect recent master changes. Fixes #271
This commit is contained in:
VicDeo 2014-06-09 19:41:37 +03:00
commit 5c66d665a8
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ class UserController extends Controller{
}
}
\OCP\JSON::success();
exit();
}
public static function rename($args){

View File

@ -208,7 +208,7 @@ class File {
$query = \OC_DB::prepare('SELECT `*PREFIX*share`.`id`, `item_type`, `*PREFIX*share`.`parent`, `uid_owner`, '
.'`share_type`, `share_with`, `file_source`, `path`, `file_target`, '
.'`permissions`, `expiration`, `storage`, `*PREFIX*filecache`.`parent` as `file_parent`, '
.'`*PREFIX*share`.`permissions`, `expiration`, `storage`, `*PREFIX*filecache`.`parent` as `file_parent`, '
.'`name`, `mtime`, `mimetype`, `mimepart`, `size`, `encrypted`, `etag`'
.'FROM `*PREFIX*share` INNER JOIN `*PREFIX*filecache` ON `file_source` = `*PREFIX*filecache`.`fileid` WHERE `item_type` = \'file\' ' . $where);
$result = $query->execute($values);