summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTurneliusz <turneliusz@gmail.com>2012-11-20 13:41:20 +0100
committerTurneliusz <turneliusz@gmail.com>2012-11-20 13:41:20 +0100
commit20661a37f03dee2b8d6337e2116cdfc28db62487 (patch)
treec947f3c194a55609963b8cef4dea18a7a4045c88
parent6288ef205136b3a30dd5e4b582dc27aa993c9b4c (diff)
downloadImageWorkshop-20661a37f03dee2b8d6337e2116cdfc28db62487.zip
ImageWorkshop-20661a37f03dee2b8d6337e2116cdfc28db62487.tar.gz
ImageWorkshop-20661a37f03dee2b8d6337e2116cdfc28db62487.tar.bz2
Fixing misspeled "percent" unit in `pasteImage()`
-rwxr-xr-xsrc/PHPImageWorkshop/ImageWorkshop.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PHPImageWorkshop/ImageWorkshop.php b/src/PHPImageWorkshop/ImageWorkshop.php
index 332af85..89bcac9 100755
--- a/src/PHPImageWorkshop/ImageWorkshop.php
+++ b/src/PHPImageWorkshop/ImageWorkshop.php
@@ -249,7 +249,7 @@ class ImageWorkshop
*/
public function pasteImage($unit = "pixel", $image, $positionX = 0, $positionY = 0)
{
- if ($unit == "pourcent") {
+ if ($unit == "percent") {
$positionX = round(($positionX / 100) * $this->width);
$positionY = round(($positionY / 100) * $this->height);