Fix max attempts message
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Thu, 7 Feb 2013 14:53:48 +0000 (14:53 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Thu, 7 Feb 2013 14:53:48 +0000 (14:53 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/sr_freecap/trunk@70958 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Classes/View/ImageGenerator/ShowPng.php

index 83d6963..4ad1899 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-02-07  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fix max attempts message
+
 2013-02-06  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Add translation view helper with formal/informal salutation option
index 08cdb92..92aa971 100644 (file)
@@ -174,7 +174,7 @@ class ShowPng implements \TYPO3\CMS\Extbase\MVC\View\ViewInterface {
                                $wordRepository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('SJBR\\SrFreecap\\Domain\\Repository\\WordRepository');
                                // Reset the word
                                $wordRepository->setWord($this->word);
-                               $string = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('max_attempts', $extensionName);
+                               $string = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('max_attempts', $this->extensionName);
                                $font = 5;
                                $width  = imagefontwidth($font) * strlen($string);
                                $height = imagefontheight($font);
@@ -208,9 +208,6 @@ class ShowPng implements \TYPO3\CMS\Extbase\MVC\View\ViewInterface {
                        $this->word->setWordCypher(\SJBR\SrFreecap\Utility\EncryptionUtility::encrypt($word));
                }
 
-               // Store the session data
-               //$wordRepository->setWord($this->word);
-
                // Build the image
                $image = $this->buildImage($word, $this->settings['imageWidth'], $this->settings['imageHeight'], $this->settings['backgroundType']);