displays user that imported file

This commit is contained in:
Rodrigo Guimarães 2020-10-27 23:58:01 -03:00
parent a2198da831
commit ee67138f31
2 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class Bulk_Edit_Process extends Generic_Process {
$author_name = $current_user->user_login;
$title_label = __('Collection', 'tainacan');
$author_label = __('Processed by', 'tainacan');
$author_label = __('Edited by', 'tainacan');
$metadata_label = __('Changed metadata', 'tainacan');
$message = __('Bulk edit finished', 'tainacan');

View File

@ -1018,11 +1018,15 @@ class CSV extends Importer {
*/
public function get_output() {
$imported_file = basename($this->get_tmp_file());
$current_user = wp_get_current_user();
$author = $current_user->user_login;
$message = __('imported file:', 'tainacan');
$message .= " <b> ${imported_file} </b><br/>";
$message .= __('target collections:', 'tainacan');
$message .= " <b>" . implode(", ", $this->get_collections_names() ) . "</b><br/>";
$message .= __('Imported by:', 'tainacan');
$message .= " <b> ${author} </b><br/>";
return $message;
}