From f750da1802d1a7231c74515b4219df352242e4ba Mon Sep 17 00:00:00 2001
From: Michael Gapczynski <GapczynskiM@gmail.com>
Date: Fri, 18 May 2012 22:07:28 -0400
Subject: [PATCH] Fix revert link on history page of file versions

---
 apps/files_versions/templates/history.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_versions/templates/history.php b/apps/files_versions/templates/history.php
index 6ef996049f..58fea75a0d 100644
--- a/apps/files_versions/templates/history.php
+++ b/apps/files_versions/templates/history.php
@@ -23,7 +23,7 @@ if( isset( $_['message'] ) ) {
 	
 		echo ' ';
 		echo OCP\Util::formatDate( $v );
-		echo ' <a href="history.php?path='.urlencode( $_['path'] ).'&revert='. $v .'" class="button">Revert</a><br /><br />';
+		echo ' <a href="'.OCP\Util::linkTo('files_versions', 'history.php').'?path='.urlencode( $_['path'] ).'&revert='. $v .'" class="button">Revert</a><br /><br />';
 		
 	}
 
-- 
GitLab