Deleting a badge photo reverts to default

This commit is contained in:
Zachary Doll 2014-05-14 11:57:26 -05:00
parent f24a5621da
commit 1be56e43ee

View File

@ -226,7 +226,7 @@ class BadgeController extends DashboardController {
$RedirectUrl = 'badge/edit/'.$BadgeID;
if (Gdn::Session()->ValidateTransientKey($TransientKey)) {
$this->BadgeModel->SetField($BadgeID, 'Photo', NULL);
$this->BadgeModel->SetField($BadgeID, 'Photo', C('Yaga.Badges.DefaultPhoto'));
$this->InformMessage(T('Yaga.BadgePhotoDeleted'));
}