From 95cc65cbc8710ea4e562e215d4beeef6978e3dbf Mon Sep 17 00:00:00 2001 From: Marcel Wieser Date: Wed, 13 Aug 2014 15:52:05 +0200 Subject: [PATCH] [BUGFIX] Fixes inverted method arguments for width and height. Changes order of arguments for width and height when build method is called. --- Classes/Lelesys/Captcha/Domain/Service/CaptchaService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Lelesys/Captcha/Domain/Service/CaptchaService.php b/Classes/Lelesys/Captcha/Domain/Service/CaptchaService.php index ecb032b..6e6dc03 100644 --- a/Classes/Lelesys/Captcha/Domain/Service/CaptchaService.php +++ b/Classes/Lelesys/Captcha/Domain/Service/CaptchaService.php @@ -47,7 +47,7 @@ public function createCaptcha() { $captcha->setInterpolation($this->settings['interpolation']); $captcha->setMaxBehindLines($this->settings['maxBehindLines']); $captcha->setMaxFrontLines($this->settings['maxFrontLines']); - $image = $captcha->setBackgroundColor($this->settings['primaryColor']['red'], $this->settings['primaryColor']['green'], $this->settings['primaryColor']['blue'])->build($this->settings['height'], $this->settings['width'])->get(); + $image = $captcha->setBackgroundColor($this->settings['primaryColor']['red'], $this->settings['primaryColor']['green'], $this->settings['primaryColor']['blue'])->build($this->settings['width'], $this->settings['height'])->get(); $value = $captcha->getPhrase(); // set Captcha session. if ($this->captchaSession->getCaptchaKey() != NULL) {