summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-03 19:12:52 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-03 21:51:32 +0200
commit5153b8b293b5485b9aa3d321f6a93979ec302068 (patch)
treeefeaeac952647be092a405d247c92e7ec27f5aa9 /apps
parent1a461924336f8ab227c135e13d7661b7a4f1e1df (diff)
downloadnextcloud-server-5153b8b293b5485b9aa3d321f6a93979ec302068.tar.gz
nextcloud-server-5153b8b293b5485b9aa3d321f6a93979ec302068.zip
Add url-params to url with new parameter in linkTo function
Diffstat (limited to 'apps')
-rw-r--r--apps/files_versions/templates/history.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/templates/history.php b/apps/files_versions/templates/history.php
index d4f875a36e8..99bc153a816 100644
--- a/apps/files_versions/templates/history.php
+++ b/apps/files_versions/templates/history.php
@@ -22,7 +22,7 @@ if( isset( $_['message'] ) ) {
foreach ( $_['versions'] as $v ) {
echo ' ';
echo OCP\Util::formatDate( doubleval($v['version']) );
- echo ' <a href="'.OCP\Util::linkTo('files_versions', 'history.php').'?path='.urlencode( $_['path'] ).'&revert='. $v['version'] .'" class="button">Revert</a><br /><br />';
+ echo ' <a href="'.OCP\Util::linkTo('files_versions', 'history.php', array('path' => urlencode( $_['path'] ), 'revert' => $v['version'])) .'" class="button">Revert</a><br /><br />';
if ( $v['cur'] ) { echo ' (<b>Current</b>)'; }
echo '<br /><br />';
}