function actionFavorite($iFileId)
{
if (!$this->_oDb->checkFavoritesIn($iFileId)) {
$sMessPost = 'add';
$this->_oDb->addToFavorites($iFileId);
} else {
$sMessPost = 'remove';
$this->_oDb->removeFromFavorites($iFileId);
}
$sJQueryJS = genAjaxyPopupJS($iFileId);
header('Content-Type: text/html; charset=UTF-8');
echo MsgBox(_t('_' . $this->_oConfig->getMainPrefix() . '_fav_' . $sMessPost)) . $sJQueryJS;
exit;
}