Fix global include

This commit is contained in:
Travis Burtrum 2016-04-28 21:21:17 -04:00
parent b9c3b744bd
commit 26b89a6f89

View File

@ -622,6 +622,7 @@ function loadProfileFields($force_reload = false)
'value' => '', 'value' => '',
'permission' => 'profile_identity', 'permission' => 'profile_identity',
'input_validate' => create_function('&$value', ' 'input_validate' => create_function('&$value', '
global $sourcedir;
require_once($sourcedir . \'/scrypt.php\'); require_once($sourcedir . \'/scrypt.php\');
$value = $value != \'\' ? Password::hash(md5($value)) : \'\'; $value = $value != \'\' ? Password::hash(md5($value)) : \'\';
return true; return true;