summaryrefslogtreecommitdiff
path: root/modules/exif/helpers/exif.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-02 00:34:34 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-02 00:34:34 -0800
commitd2cb217e20d44d7928a0910ac0375740de163bb3 (patch)
tree8b7a45adb4457cbd7ed291b8151cf330a13fbf10 /modules/exif/helpers/exif.php
parentc803cb29091d3b069077d7711a2485f75f274835 (diff)
Convert more database calls over to the new format
- admin/maintenance page loads, the rebuild thumbs/resizes task works - Fixed up some conversion bugs in the Cache driver
Diffstat (limited to 'modules/exif/helpers/exif.php')
-rw-r--r--modules/exif/helpers/exif.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/exif/helpers/exif.php b/modules/exif/helpers/exif.php
index d3a8c103..3177e7eb 100644
--- a/modules/exif/helpers/exif.php
+++ b/modules/exif/helpers/exif.php
@@ -139,7 +139,7 @@ class exif_Core {
}
static function stats() {
- $missing_exif = Database::instance()
+ $missing_exif = db::build()
->select("items.id")
->from("items")
->join("exif_records", "items.id", "exif_records.item_id", "left")
@@ -148,10 +148,10 @@ class exif_Core {
->where("exif_records.item_id", "=", null)
->or_where("exif_records.dirty", "=", 1)
->close()
- ->get()
+ ->execute()
->count();
- $total_items = ORM::factory("item")->where("type", "photo")->count_all();
+ $total_items = ORM::factory("item")->where("type", "=", "photo")->count_all();
if (!$total_items) {
return array(0, 0, 0);
}