fix getVersions() call for the history view

This commit is contained in:
Björn Schießle 2013-03-01 13:55:10 +01:00
parent e81b6395d4
commit a01540a300
1 changed files with 2 additions and 1 deletions

View File

@ -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 ) );