Index: branches/5.0.x/core/kernel/processors/main_processor.php =================================================================== diff -u -r12343 -r12368 --- branches/5.0.x/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 12343) +++ branches/5.0.x/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 12368) @@ -1,6 +1,6 @@ NoDebug($params); $this->Application->SetVar('skip_last_template', 1); $captcha_helper =& $this->Application->recallObject('CaptchaHelper'); /* @var $captcha_helper kCaptchaHelper */ - $captcha_helper->GenerateCaptchaImage( - $this->Application->RecallVar($this->Application->GetVar('var')), - $this->Application->GetVar('w'), - $this->Application->GetVar('h'), - true - ); + // generate captcha code + $code = $captcha_helper->prepareCode( $this->Application->GetVar('var') ); + + $captcha_helper->GenerateCaptchaImage($code, $this->Application->GetVar('w'), $this->Application->GetVar('h'), true); } function SID($params)