X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fhelper%2Fcaptcha%2Fweb%2Fclass_GraphicalCodeCaptcha.php;h=3d097bdb14969bc9726bbb186a87adb468b5fc86;hp=b24cddd2fd118b71cc718ac5da12e3fa0e056f9f;hb=5203f9bd014ad46fbc7ee54e7223dcd46e14e3b4;hpb=b4683952aea678cf8e45d95989176073961de136 diff --git a/inc/classes/main/helper/captcha/web/class_GraphicalCodeCaptcha.php b/inc/classes/main/helper/captcha/web/class_GraphicalCodeCaptcha.php index b24cddd2..3d097bdb 100644 --- a/inc/classes/main/helper/captcha/web/class_GraphicalCodeCaptcha.php +++ b/inc/classes/main/helper/captcha/web/class_GraphicalCodeCaptcha.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -137,13 +137,13 @@ class GraphicalCodeCaptcha extends BaseCaptcha implements SolveableCaptcha { $templateInstance->loadCodeTemplate('captch_graphic_code'); // Rename variable - $templateInstance->renameVariable('captcha_code', $helperInstance->getFormName().'_captcha'); - $templateInstance->renameVariable('captcha_hash', $helperInstance->getFormName().'_hash'); - $templateInstance->renameVariable('encrypted_code', $helperInstance->getFormName().'_encrypt'); + $templateInstance->renameVariable('captcha_code', $helperInstance->getFormName() . '_captcha'); + $templateInstance->renameVariable('captcha_hash', $helperInstance->getFormName() . '_hash'); + $templateInstance->renameVariable('encrypted_code', $helperInstance->getFormName() . '_encrypt'); // Assign variables - $templateInstance->assignVariable($helperInstance->getFormName().'_encrypt', urlencode(base64_encode($this->encryptedString))); - $templateInstance->assignVariable($helperInstance->getFormName().'_hash', $this->hashedString); + $templateInstance->assignVariable($helperInstance->getFormName() . '_encrypt', urlencode(base64_encode($this->encryptedString))); + $templateInstance->assignVariable($helperInstance->getFormName() . '_hash', $this->hashedString); // Compile the template $templateInstance->compileTemplate();