From 67142f60301dea3473e32814849d7ef75e3681a3 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 16 Nov 2023 13:57:20 +0800 Subject: [PATCH] * Adjust file download for mr. --- module/mr/ui/diff.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/mr/ui/diff.html.php b/module/mr/ui/diff.html.php index 87dc29b485..c0174f9fdb 100644 --- a/module/mr/ui/diff.html.php +++ b/module/mr/ui/diff.html.php @@ -52,7 +52,7 @@ jsVar('diffLink', $diffLink); jsVar('urlParams', "repoID=$repoID&objectID=$objectID&entry=%s&oldRevision=$oldRevision&newRevision=$newRevision&showBug=$showBug&encoding=$encoding"); $dropMenus = array(); -if(common::hasPriv('repo', 'download')) $dropMenus[] = array('text' => $this->lang->repo->downloadDiff, 'icon' => 'download', 'url' => $this->repo->createLink('download', "repoID=$repoID&path=$currentEntry&fromRevision=$oldRevision&toRevision=$newRevision&type=path"), 'target' => '_blank'); +if(common::hasPriv('repo', 'download')) $dropMenus[] = array('text' => $this->lang->repo->downloadDiff, 'icon' => 'download', 'url' => $this->repo->createLink('download', "repoID=$repoID&path=$currentEntry&fromRevision=$oldRevision&toRevision=$newRevision&type=path"), 'target' => '_self'); $dropMenus[] = array('text' => $this->lang->repo->viewDiffList['inline'], 'icon' => 'snap-house', 'id' => 'inline', 'class' => 'inline-appose'); $dropMenus[] = array('text' => $this->lang->repo->viewDiffList['appose'], 'icon' => 'col-archive', 'id' => 'appose', 'class' => 'inline-appose');