I noticed this code while I was checking the changes from beta 1 in \applications\core\modules\admin\languages\languages.php:
// This appears inside a dialog. The following instructs the dialog to handle the download via JS rather than using a native form download. This allows the dialog to close when done. $filename = $lang->title . " {$lang->version}.xml"; $form->attributes['data-form-is-download'] = ''; $form->attributes['data-form-download-name'] = "testing to see if this works " . $filename;
I don't think the testing text string is supposed to be there. 😋
Recommended Comments