Fixing FIXMEs

This commit is contained in:
Dan Cryer 2015-02-12 13:30:32 +00:00
commit 7820ccdf9e
4 changed files with 8 additions and 7 deletions

View file

@ -84,9 +84,12 @@ class BuildStatusController extends \PHPCI\Controller
}
$color = ($status == 'passing') ? 'green' : 'red';
header('Content-Type: image/svg+xml');
die(file_get_contents('http://img.shields.io/badge/build-' . $status . '-' . $color . '.svg'));
$image = file_get_contents('http://img.shields.io/badge/build-' . $status . '-' . $color . '.svg');
$this->response->disableLayout();
$this->response->setHeader('Content-Type', 'image/svg+xml');
$this->response->setContent($image);
return $this->response;
}
/**