Problem with 'add to favorites' actions
There is a problem when trying to add item to Favorites. Nothing happens on click (actually items are added to favorites in database).
You can check this on Directory package.
Also, do we need this output in printFavorites function?:
$output = '<span id="favorites_' . $params['itemtype'] . '_' . $params['item']['id'] . '">';
It seems that it is unnecessary.