Fix issue #60 : export OPML dans un fichier téléchargeable

This commit is contained in:
Marien Fressinaud
2013-04-17 19:31:20 +02:00
parent 244026874a
commit a2b5e8f3ce
2 changed files with 3 additions and 2 deletions

View File

@@ -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 ();

View File

@@ -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>