Skip to content
Snippets Groups Projects
Commit 10e3b3a3 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

bugfix query

parent 60a5b490
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ class ExternController extends PluginController
public function xml_action() {
$this->plugins = MarketPlugin::findBySQL("publiclyvisible = 1 AND approved = 1 ORDER BY name ASC");
$this->set_layout(null);
header("Content-Type: text/xml");
$this->response->add_header('Content-Type', "text/xml");
}
public function find_releases_action() {
......
......@@ -143,6 +143,8 @@ class PresentingController extends PluginController {
$release['downloads'] += 1;
$release->store();
$this->render_nothing();
$this->response->add_header('Content-Type', "application/zip");
$this->response->add_header('Content-Disposition', "attachment; filename=".$release->plugin['name'].".zip");
}
public function image_action($image_id) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment