Debug mailer finished and debug messages removed:
[shipsimu.git] / inc / classes / main / helper / captcha / images / class_ImageHelper.php
index 435f4c55d81a937595a0e1fb9c24f62189899a0c..a29f5a19aba95cc1da3af4374863c623314a8384 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -88,7 +88,7 @@ class ImageHelper extends BaseCaptcha implements HelpableTemplate {
         *
         * @param       $templateInstance       An instance of a template engine
         * @param       $imageType                      Type of the image
-        * @return      $helperInstance         A preparedf instance of this class
+        * @return      $helperInstance         A preparedf instance of this helper
         */
        public final static function createImageHelper (CompileableTemplate $templateInstance, $imageType) {
                // Get new instance
@@ -368,8 +368,8 @@ class ImageHelper extends BaseCaptcha implements HelpableTemplate {
                $templateInstance->assignVariable('image_fg_blue' , $this->foregroundColor['blue']);
 
                // Add all strings
-               foreach ($this->imageStrings as $id=>$imageString) {
-                       // Set current string id
+               foreach ($this->imageStrings as $id => $imageString) {
+                       // Set current string id to keep this helper in sync with template engine
                        $this->currString = $id;
 
                        // Set variable group
@@ -386,7 +386,7 @@ class ImageHelper extends BaseCaptcha implements HelpableTemplate {
                $imageContent = $templateInstance->getRawTemplateData();
 
                // Transfer all to the template engine
-               $templateInstance->renderImageContent($imageContent);
+               $templateInstance->renderXmlContent($imageContent);
        }
 }