diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-11-26 19:23:36 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-26 19:23:36 -0800 |
commit | 9fd6a0a63e95f1fd73e0ebb224c1c1dd30686858 (patch) | |
tree | 785b62dad61bf6b83944ca156e1f1344d54d9abc /modules/exif/helpers/exif_theme.php | |
parent | 54be15191b983e72b4643f3559303b35b7c48795 (diff) |
Convert Database::instance() -> db::build()
Diffstat (limited to 'modules/exif/helpers/exif_theme.php')
-rw-r--r-- | modules/exif/helpers/exif_theme.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/exif/helpers/exif_theme.php b/modules/exif/helpers/exif_theme.php index db51f305..23dc95c2 100644 --- a/modules/exif/helpers/exif_theme.php +++ b/modules/exif/helpers/exif_theme.php @@ -21,11 +21,11 @@ class exif_theme_Core { static function sidebar_bottom($theme) { $item = $theme->item(); if ($item && $item->is_photo()) { - $record = Database::instance() + $record = db::build() ->select("key_count") ->from("exif_records") ->where("item_id", "=", $item->id) - ->get() + ->execute() ->current(); if ($record && $record->key_count) { $view = new View("exif_sidebar.html"); |