X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fscrypt%2Fclass_Scrypt.php;h=e1c7cb9c307abca6b73289c6d52c3a937de527f6;hp=aebadcc79c74497ba3fcc0bd9acbd6af6e39e242;hb=0ccdb0379f308c6b7b5677b8b7c242df8e9dd300;hpb=8557b4385895b8cb92e04c5dd66c783b25055dd7 diff --git a/inc/classes/main/scrypt/class_Scrypt.php b/inc/classes/main/scrypt/class_Scrypt.php index aebadcc7..e1c7cb9c 100644 --- a/inc/classes/main/scrypt/class_Scrypt.php +++ b/inc/classes/main/scrypt/class_Scrypt.php @@ -130,7 +130,7 @@ abstract class Scrypt extends BaseFrameworkSystem */ public static function hashScrypt ($password, $salt = false, $N = 16384, $r = 8, $p = 1) { - if ((!FrameworkConfiguration::getSelfInstance()->isConfigurationEntrySet('extension_scrypt_loaded')) || (FrameworkConfiguration::getSelfInstance()->getConfigEntry('extension_scrypt_loaded') === FALSE)) { + if (!FrameworkFeature::isFeatureAvailable('hubcoin_reward')) { // Feature has been disabled throw new \InvalidArgumentException('Feature "scrypt" disabled.'); } @@ -174,7 +174,7 @@ abstract class Scrypt extends BaseFrameworkSystem return false; } - if ((!FrameworkConfiguration::getSelfInstance()->isConfigurationEntrySet('extension_scrypt_loaded')) || (FrameworkConfiguration::getSelfInstance()->getConfigEntry('extension_scrypt_loaded') === FALSE)) { + if (!FrameworkFeature::isFeatureAvailable('hubcoin_reward')) { // Feature has been disabled throw new \InvalidArgumentException('Feature "scrypt" disabled.'); }