*/
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.');
}
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.');
}