remove unnecessary globals from generatePassword() function
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -18,11 +18,6 @@
|
||||
/**
|
||||
* Generates a random password
|
||||
*/
|
||||
|
||||
function generatePassword()
|
||||
{
|
||||
global $db, $settings, $theme;
|
||||
|
||||
function generatePassword() {
|
||||
return substr(md5(uniqid(microtime(), 1)), 24, 10);
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user