Merge pull request #89 from mrafalko/master
Added `exit` statement to correct redirects
This commit is contained in:
commit
d46e28c7f7
|
@ -79,6 +79,7 @@ class BuildController extends \PHPCI\Controller
|
|||
$build = $this->_buildStore->save($build);
|
||||
|
||||
header('Location: '.PHPCI_URL.'build/view/' . $build->getId());
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -94,6 +95,7 @@ class BuildController extends \PHPCI\Controller
|
|||
$this->_buildStore->delete($build);
|
||||
|
||||
header('Location: '.PHPCI_URL.'project/view/' . $build->getProjectId());
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -63,6 +63,7 @@ class ProjectController extends \PHPCI\Controller
|
|||
$build = $this->_buildStore->save($build);
|
||||
|
||||
header('Location: '.PHPCI_URL.'build/view/' . $build->getId());
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,8 +19,10 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
<?php if (in_array($project->getType(), array('github', 'bitbucket'))): ?>
|
||||
<br>
|
||||
<p class="alert alert-info">To automatically build this project when new commits are pushed, add the URL below
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
switch($project->getType())
|
||||
|
|
Loading…
Reference in a new issue