Minor - add flash msgs

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 89fc2ea9a5
commit b1b914f457
  1. 2
      main/newscorm/lp_add_category.php

@ -48,10 +48,12 @@ if ($form->validate()) {
if (!empty($values['id'])) {
learnpath::updateCategory($values);
$url = api_get_self().'?action=list&'.api_get_cidreq();
Display::addFlash(Display::return_message(get_lang('Updated')));
header('Location: '.$url);
exit;
} else {
learnpath::createCategory($values);
Display::addFlash(Display::return_message(get_lang('Added')));
$url = api_get_self().'?action=list&'.api_get_cidreq();
header('Location: '.$url);
exit;

Loading…
Cancel
Save