summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-17 19:31:20 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-17 19:31:20 +0200
commita2b5e8f3ce597fbcec0c25b68c551a526d2bf3ec (patch)
tree6c93b180bf271e32357bf1bad4baa93aa1233f5b /app
parent244026874aba991e7feb37f74a61b192f1bda5ac (diff)
Fix issue #60 : export OPML dans un fichier téléchargeable
Diffstat (limited to 'app')
-rwxr-xr-xapp/controllers/configureController.php3
-rw-r--r--app/views/configure/importExport.phtml2
2 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/configureController.php b/app/controllers/configureController.php
index 9f4a8b24a..18a56c066 100755
--- a/app/controllers/configureController.php
+++ b/app/controllers/configureController.php
@@ -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 ();
diff --git a/app/views/configure/importExport.phtml b/app/views/configure/importExport.phtml
index cd677c1eb..34bee4a07 100644
--- a/app/views/configure/importExport.phtml
+++ b/app/views/configure/importExport.phtml
@@ -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>