Item ID is no longer required by info_block_metadata event, the entire item object is.
This commit is contained in:
parent
e24997eda1
commit
fa79b1b447
@ -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(
|
||||
|
Reference in New Issue
Block a user