Merge pull request #89 from mrafalko/master

Added `exit` statement to correct redirects
This commit is contained in:
Dan Cryer 2013-07-25 04:11:59 -07:00
commit d46e28c7f7
3 changed files with 8 additions and 3 deletions

View file

@ -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;
}
/**

View file

@ -63,6 +63,7 @@ class ProjectController extends \PHPCI\Controller
$build = $this->_buildStore->save($build);
header('Location: '.PHPCI_URL.'build/view/' . $build->getId());
exit;
}
/**

View file

@ -19,8 +19,10 @@
</ul>
</div>
<br>
<p class="alert alert-info">To automatically build this project when new commits are pushed, add the URL below
<?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())
@ -83,4 +85,4 @@ setInterval(function()
$('#latest-builds').load('<?= PHPCI_URL ?>project/builds/<?php print $project->getId(); ?>');
}, 10000);
</script>
<?php endif; ?>
<?php endif; ?>