1
0

Item ID is no longer required by info_block_metadata event, the entire item object is.

This commit is contained in:
Chad Kieffer 2011-01-04 19:27:22 -07:00
parent e24997eda1
commit fa79b1b447

View File

@ -52,8 +52,8 @@ class bitly_event_Core {
}
}
static function info_block_metadata($block, $item_id) {
$link = ORM::factory("bitly_link")->where("item_id", "=", $item_id)->find();
static function info_block_metadata($block, $item) {
$link = ORM::factory("bitly_link")->where("item_id", "=", $item->id)->find();
if ($link->loaded()) {
$info = $block->content->metadata;
$info["bitly_url"] = array(