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);
|
$build = $this->_buildStore->save($build);
|
||||||
|
|
||||||
header('Location: '.PHPCI_URL.'build/view/' . $build->getId());
|
header('Location: '.PHPCI_URL.'build/view/' . $build->getId());
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -94,6 +95,7 @@ class BuildController extends \PHPCI\Controller
|
||||||
$this->_buildStore->delete($build);
|
$this->_buildStore->delete($build);
|
||||||
|
|
||||||
header('Location: '.PHPCI_URL.'project/view/' . $build->getProjectId());
|
header('Location: '.PHPCI_URL.'project/view/' . $build->getProjectId());
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -63,6 +63,7 @@ class ProjectController extends \PHPCI\Controller
|
||||||
$build = $this->_buildStore->save($build);
|
$build = $this->_buildStore->save($build);
|
||||||
|
|
||||||
header('Location: '.PHPCI_URL.'build/view/' . $build->getId());
|
header('Location: '.PHPCI_URL.'build/view/' . $build->getId());
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -19,8 +19,10 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<?php if (in_array($project->getType(), array('github', 'bitbucket'))): ?>
|
||||||
<p class="alert alert-info">To automatically build this project when new commits are pushed, add the URL below
|
<br>
|
||||||
|
<p class="alert alert-info">To automatically build this project when new commits are pushed, add the URL below
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
switch($project->getType())
|
switch($project->getType())
|
||||||
|
@ -83,4 +85,4 @@ setInterval(function()
|
||||||
$('#latest-builds').load('<?= PHPCI_URL ?>project/builds/<?php print $project->getId(); ?>');
|
$('#latest-builds').load('<?= PHPCI_URL ?>project/builds/<?php print $project->getId(); ?>');
|
||||||
}, 10000);
|
}, 10000);
|
||||||
</script>
|
</script>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
Loading…
Reference in a new issue