From bf3200320004110bb7a79b7d271eac8b476a966c Mon Sep 17 00:00:00 2001 From: shish Date: Sun, 12 Oct 2008 01:10:33 +0000 Subject: [PATCH] fix, make uploads work... git-svn-id: file:///home/shish/svn/shimmie2/trunk@1073 7f39781d-f577-437e-ae19-be835c7a54ca --- core/image.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/image.class.php b/core/image.class.php index bb2e339e..11b56c4a 100644 --- a/core/image.class.php +++ b/core/image.class.php @@ -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); }