Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leopro committed May 29, 2013
1 parent aca0078 commit c1a8a21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/PUGX/BadgeBundle/Controller/BadgeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function versionAction($repository)
if ($version) {
$image = $imageCreator->createStableImage($version);
} else {
$image = $imageCreator->createUnstableImage($version);
$image = $imageCreator->createUnstableImage();
}

return $this->streamImage($image, $outputFilename);
Expand Down
4 changes: 2 additions & 2 deletions src/PUGX/BadgeBundle/Service/ImageCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ public function createStableImage($value)
*
* @return resource
*/
public function createUnstableImage($value)
public function createUnstableImage($value = '@dev')
{
$imagePath = $this->imagePath . DIRECTORY_SEPARATOR . $this->imageNames['stable'];
$image = $this->createImage($imagePath);

$this->addShadowedText($image, '@dev', 46, 13.5);
$this->addShadowedText($image, $value, 46, 13.5);

return $image;
}
Expand Down

0 comments on commit c1a8a21

Please sign in to comment.