* Replace setcookie function to helper::setcookie.

This commit is contained in:
caoyanyi
2023-05-11 11:21:59 +08:00
parent 649238738d
commit 9bfac278bd
3 changed files with 27 additions and 37 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ class project extends control
if(empty($project) || $project->type != 'project') return print(js::error($this->lang->notFound) . js::locate('back'));
if(!$projectID) $this->locate($this->createLink('project', 'browse'));
setCookie("lastProject", strVal($projectID), $this->config->cookieLife, $this->config->webRoot, '', $this->config->cookieSecure, true);
helper::setcookie("lastProject", strVal($projectID));
if($project->model == 'kanban' and $this->config->vision != 'lite')
{