From cd17b6d3b26b80608d92cb32979ba4c159fc7f88 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Wed, 4 Jan 2023 10:12:22 +0800 Subject: [PATCH] * Adjust code. --- module/repo/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/repo/control.php b/module/repo/control.php index 7a0570b710..0d0506dc44 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -427,8 +427,8 @@ class repo extends control if($repoID == 0) $repoID = $this->session->repoID; if($revision != 'HEAD') { - setCookie("repoBranch", $revision, $this->config->cookieLife, $this->config->webRoot, '', false, true); - $this->cookie->repoBranch = $revision; + setCookie("repoBranch", $revision, $this->config->cookieLife, $this->config->webRoot, '', false, true); + $this->cookie->repoBranch = $revision; } $this->commonAction($repoID, $objectID);