$value_info) { $result_array[$key_value] = SubLanguageManager::write_data_in_file($path_folder, $value_info, $key_value); } $variables_with_problems = ''; if (!empty($result_array)) { foreach ($result_array as $key => $result) { if ($result == false) { $variables_with_problems .=$key.'
'; } } } if (isset($_REQUEST['redirect'])) { Display::addFlash( Display::return_message(get_lang('TheNewWordHasBeenAdded'), 'success') ); header('Location: ' . api_get_path(WEB_CODE_PATH) . 'admin/sub_language.php?' . http_build_query([ 'id' => $id_language, 'sub_language_id' => $sub_language_id, 'txt_search_word' => ltrim($language_variable, '$') ])); exit; } if (!empty($variables_with_problems)) { echo $path_folder.' '.get_lang('IsNotWritable').'
'.api_ucwords(get_lang('ErrorsFound')).':
'.$variables_with_problems; } else { echo 1; } }