fix, make uploads work...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1073 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
c68df68195
commit
bf32003200
@ -42,7 +42,7 @@ class Image {
|
||||
public static function by_hash(Config $config, Database $database, $hash) {
|
||||
assert(is_string($hash));
|
||||
$image = null;
|
||||
$row = $this->db->GetRow("SELECT images.* FROM images WHERE hash=?", array($hash));
|
||||
$row = $database->db->GetRow("SELECT images.* FROM images WHERE hash=?", array($hash));
|
||||
return ($row ? new Image($row) : null);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user