MINOR Added feedback after creating page (fixes #7297)

This commit is contained in:
Ingo Schommer 2012-06-04 09:57:40 +02:00
parent 6ed5ef9648
commit b5254862a2

View File

@ -124,6 +124,12 @@ class CMSPageAddController extends CMSPageEditController {
$record->write();
$editController = singleton('CMSPageEditController');
$editController->setCurrentPageID($record->ID);
Session::set(
"FormInfo.Form_EditForm.formError.message",
_t('CMSMain.PageAdded', 'Successfully created page')
);
Session::set("FormInfo.Form_EditForm.formError.type", 'good');
return $this->redirect(Controller::join_links(singleton('CMSPageEditController')->Link('show'), $record->ID));
}