* Move exit to return.

This commit is contained in:
zhujinyong
2022-02-22 14:25:14 +08:00
parent 2b7820d317
commit 49af622fd8
8 changed files with 9 additions and 15 deletions
+1 -1
View File
@@ -359,7 +359,7 @@ class commonModel extends model
{
echo js::locate($denyLink);
}
exit;
helper::end();
}
/**
+2 -4
View File
@@ -1304,8 +1304,7 @@ class execution extends control
$this->view->executionID = $executionID;
$this->view->projectID = $projectID;
$this->view->project = $project;
$this->display();
exit;
return $this->display();
}
$name = '';
@@ -2464,8 +2463,7 @@ class execution extends control
include $this->app->getModulePath('', 'execution') . 'lang/' . $this->app->getClientLang() . '.php';
}
echo js::confirm($tips . sprintf($this->lang->execution->confirmDelete, $this->executions[$executionID]), $this->createLink('execution', 'delete', "executionID=$executionID&confirm=yes"));
exit;
return print(js::confirm($tips . sprintf($this->lang->execution->confirmDelete, $this->executions[$executionID]), $this->createLink('execution', 'delete', "executionID=$executionID&confirm=yes")));
}
else
{
+1 -1
View File
@@ -25,7 +25,7 @@
</div>
</body>
</html>
<?php exit;?>
<?php helper::end();?>
<?php endif;?>
<?php include '../../common/view/header.html.php';?>
+1 -2
View File
@@ -136,8 +136,7 @@ class git extends control
$parsedObjects['tasks'] = array_unique($parsedObjects['tasks']);
$parsedObjects['bugs'] = array_unique($parsedObjects['bugs']);
$this->view->parsedObjects = $parsedObjects;
$this->display();
exit;
return $this->display();
}
}
+1 -1
View File
@@ -25,7 +25,7 @@
</div>
</body>
</html>
<?php exit;?>
<?php helper::end();?>
<?php endif;?>
<?php include '../../common/view/header.html.php';?>
+1 -2
View File
@@ -1153,8 +1153,7 @@ class story extends control
if($confirm == 'no')
{
echo js::confirm($this->lang->story->confirmDelete, $this->createLink('story', 'delete', "story=$storyID&confirm=yes"), '');
exit;
return print(js::confirm($this->lang->story->confirmDelete, $this->createLink('story', 'delete', "story=$storyID&confirm=yes"), ''));
}
else
{
+1 -2
View File
@@ -124,8 +124,7 @@ class svn extends control
$parsedObjects['tasks'] = array_unique($parsedObjects['tasks']);
$parsedObjects['bugs'] = array_unique($parsedObjects['bugs']);
$this->view->parsedObjects = $parsedObjects;
$this->display();
exit;
return $this->display();
}
}
+1 -2
View File
@@ -427,8 +427,7 @@ class todo extends control
{
if($confirm == 'no')
{
echo js::confirm($this->lang->todo->confirmDelete, $this->createLink('todo', 'delete', "todoID=$todoID&confirm=yes"));
exit;
return print(js::confirm($this->lang->todo->confirmDelete, $this->createLink('todo', 'delete', "todoID=$todoID&confirm=yes")));
}
else
{