Fix global include

This commit is contained in:
Travis Burtrum 2016-04-28 21:21:17 -04:00
parent b9c3b744bd
commit 26b89a6f89
1 changed files with 1 additions and 0 deletions

View File

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