return;
}
common_redirect('/photo/' . $this->photo->id, '303');
- $this->showForm(_('Success!'), true);
-
+ // common_redirect exits
}
function deletePhoto()
$this->photo->delete();
if (Event::handle('StartDeleteOwnNotice', array($this->user, $notice))) {
- $notice->delete();
+ $notice->deleteAs($this->scoped);
Event::handle('EndDeleteOwnNotice', array($this->user, $notice));
}
$this->showForm(_('Success!'));
common_redirect('/' . $this->user->nickname . '/photos/' . $oldalbum, '303');
- return;
}
}