Version 5.0.0 beta 2
This commit is contained in:
1 parent
15c7beabc5
commit
f61b0da85d
181 files changed
+3182
-1533
No files matched your search
@@ -761,6 +761,10 @@ class languages extends Controller
|
||||
}
|
||||
|
||||
$form = new Form( 'form', 'langauge_export_button' );
|
||||
// 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;
|
||||
|
||||
$form->add( new Text( 'language_export_author_name', $lang->author_name, false ) );
|
||||
$form->add( new FormUrl( 'language_export_author_url', $lang->author_url, false ) );
|
||||
@@ -874,7 +878,16 @@ class languages extends Controller
|
||||
|
||||
/* Finish */
|
||||
$xml->endDocument();
|
||||
Output::i()->sendOutput( $xml->outputMemory(), 200, 'application/xml', array( 'Content-Disposition' => Output::getContentDisposition( 'attachment', $lang->title . " {$lang->version}.xml" ) ), FALSE, FALSE, FALSE );
|
||||
Output::i()->sendOutput(
|
||||
$xml->outputMemory(),
|
||||
200,
|
||||
'application/xml',
|
||||
array(
|
||||
'Content-Disposition' => Output::getContentDisposition( 'attachment', $filename ) ),
|
||||
FALSE,
|
||||
FALSE,
|
||||
FALSE
|
||||
);
|
||||
}
|
||||
|
||||
/* Display */
|
||||
|
||||
Reference in new issue
Block a user