summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-05 02:03:37 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-05 02:03:37 -0400
commit28b6a088b7a8bd2d73a25cf7b08383ad97abdc9d (patch)
treee2ef4a9982dcb846fc18cbbd673a1112dd856515 /src/lib
parent570901ba4e526be37afd0cbbe018cb0500a7cda1 (diff)
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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Database.class.php7
1 files changed, 5 insertions, 2 deletions
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 =