*
* @return void
*/
- function handle($args)
+ function handle(array $args=array())
{
parent::handle($args);
// TRANS: Client error.
_m('Could not disfavor notice! Please make sure your browser has cookies enabled.')
);
- return;
}
$id = $this->trimmed('notice');
common_log_db_error($fave, 'DELETE', __FILE__);
// TRANS: Server error.
$this->serverError(_m('Could not delete favorite.'));
- return;
}
- $profile->blowFavesCache();
+ Fave::blowCacheForProfileId($profile->id);
if ($this->boolean('ajax')) {
$this->startHTML('text/xml;charset=utf-8');