aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-03-01 13:55:10 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-03-01 13:55:10 +0100
commita01540a3001906812f5626478fcfaf2e3af8b82e (patch)
treeb4ae87745334166e42cab6e48e40fa424a80dd5f
parente81b6395d41b7568bea67c775e9ffb285d1f5111 (diff)
downloadnextcloud-server-a01540a3001906812f5626478fcfaf2e3af8b82e.tar.gz
nextcloud-server-a01540a3001906812f5626478fcfaf2e3af8b82e.zip
fix getVersions() call for the history view
-rw-r--r--apps/files_versions/history.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_versions/history.php b/apps/files_versions/history.php
index 437a3fec065..719a7208fed 100644
--- a/apps/files_versions/history.php
+++ b/apps/files_versions/history.php
@@ -59,7 +59,8 @@ if ( isset( $_GET['path'] ) ) {
// show the history only if there is something to show
$count = 999; //show the newest revisions
- if( ($versions = OCA\Files_Versions\Storage::getVersions( $path, $count)) ) {
+ list ($uid, $filename) = OCA\Files_Versions\Storage::getUidAndFilename($path);
+ if( ($versions = OCA\Files_Versions\Storage::getVersions($uid, $filename, $count)) ) {
$tmpl->assign( 'versions', array_reverse( $versions ) );