From 28b6a088b7a8bd2d73a25cf7b08383ad97abdc9d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 5 Sep 2011 02:03:37 -0400 Subject: Fix a few growing pains * Users.class.php: whitespace change, fix a few array things * Database.class.php: refer to $mm->hasher(), not $this->hasher() * new.html.php: fix stupid shit --- src/lib/Database.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/Database.class.php b/src/lib/Database.class.php index b7e5bcd..07df993 100644 --- a/src/lib/Database.class.php +++ b/src/lib/Database.class.php @@ -114,7 +114,8 @@ class Database { if (!is_int($uid)) return false; $table = $this->mysql_table('auth'); - $hasher = $this->hasher(); + global $mm; + $hasher = $mm->hasher(); @$hash = $hasher->HashPassword($password); $query = "UPDATE $table \n". @@ -129,9 +130,11 @@ class Database { return false; } + global $mm; + $table = $this->mysql_table('auth'); $user = $this->mysql_escape($username); - $hasher = $this->hasher(); + $hasher = $mm->hasher(); @$hash = $hasher->HashPassword($password); $status = 0; $query = -- cgit v1.2.3-2-g168b