]> git.mxchange.org Git - core.git/blobdiff - inc/classes/exceptions/crypto/class_EncryptInvalidLengthException.php
Refactured code for deprecated includes file_io and language:
[core.git] / inc / classes / exceptions / crypto / class_EncryptInvalidLengthException.php
index 7fbe36c2f96d941d0e138eac8f2d3f953d556b3e..0845523e19a6ad0ca253b24e10076050cef14ea9 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007 - 2009 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -29,9 +29,9 @@ class EncryptInvalidLengthException extends FrameworkException {
         * @param       $code           Error code
         * @return      void
         */
-       public function __construct(Filterable $filterInstance, $code) {
+       public function __construct (Filterable $filterInstance, $code) {
                // Get length
-               $length = $filterInstance->getConfigInstance()->readConfig('captcha_string_length');
+               $length = $filterInstance->getConfigInstance()->getConfigEntry('captcha_string_length');
 
                // Construct message
                $message = sprintf("[%s:%d] Encrypt string has an invalid length. Valid: %d",
@@ -41,7 +41,7 @@ class EncryptInvalidLengthException extends FrameworkException {
                );
 
                // Set extra data
-               $this->setExtraData($filterInstance->__toString().":".$length);
+               $this->setExtraData($filterInstance->__toString() . ':' . $length);
 
                // Call parent exception constructor
                parent::__construct($message, $code);