Skip to content

Commit

Permalink
Use AddFlash function
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Jul 12, 2016
1 parent 28316e1 commit 1cddb24
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main/admin/sub_language_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,7 @@ function allow_get_all_information_of_sub_language($parent_id, $sub_language_id)
SubLanguageManager::remove_language_directory($english_name);
$msg .= Display::return_message(get_lang('LanguageDirectoryNotWriteableContactAdmin'), 'error');
} else {
// Here we build the confirmation message and we send the user to the sub language terms definition page, using a little hack - see #3712
$_SESSION['msg'] = Display::return_message(get_lang('TheNewSubLanguageHasBeenAdded') . $str_info . 'confirm',
false);
Display::addFlash(Display::return_message(get_lang('TheNewSubLanguageHasBeenAdded') . $str_info));
unset($interbreadcrumb);
$_GET['sub_language_id'] = $_REQUEST['sub_language_id'] = $sl_id;
require 'sub_language.php';
Expand Down

0 comments on commit 1cddb24

Please sign in to comment.