mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 00:04:54 -04:00
Fix issue #60 : export OPML dans un fichier téléchargeable
This commit is contained in:
@@ -184,7 +184,8 @@ class configureController extends ActionController {
|
||||
View::_title ('feeds_opml.xml');
|
||||
|
||||
$this->view->_useLayout (false);
|
||||
header('Content-type: text/xml');
|
||||
header('Content-Type: text/xml; charset=utf-8');
|
||||
header('Content-disposition: attachment; filename=feeds_opml.xml');
|
||||
|
||||
$feedDAO = new FeedDAO ();
|
||||
$catDAO = new CategoryDAO ();
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<div class="group-controls">
|
||||
<button type="submit" class="btn btn-important">Importer</button>
|
||||
ou
|
||||
<button type="submit" class="btn btn-important" formaction="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'export'))); ?>">Exporter</button>
|
||||
<a target="_blank" class="btn btn-important" href="<?php echo _url ('configure', 'importExport', 'q', 'export'); ?>">Exporter</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user