]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/crypto/class_CryptoHelper.php
Missing method added, renamed
[core.git] / inc / classes / main / crypto / class_CryptoHelper.php
index 38a541b0937ded05109e391682a446d000cf0249..2335f5dc5a534855c556de2034d315fe8b2c1206 100644 (file)
@@ -103,9 +103,9 @@ class CryptoHelper extends BaseFrameworkSystem implements Cryptable {
         */
        protected function attachCryptoStream () {
                // Do we have mcrypt loaded?
-               if ($this->isPhpModuleLoaded('mcrypt')) {
+               if ($this->isPhpExtensionLoaded('mcrypt')) {
                        // Then use it
-                       $this->cryptoStreamInstance = ObjectFactory::createObjectByName('McryptStream', array($this->rngInstance()))
+                       $this->cryptoStreamInstance = ObjectFactory::createObjectByName('McryptStream', array($this->rngInstance()));
                } else {
                        // If nothing works ...
                        $this->cryptoStreamInstance = ObjectFactory::createObjectByName('NullCryptoStream');