We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit c6ba5456 authored by mattl's avatar mattl

XrdAction extends ManagedAction

parent 1945a315
......@@ -25,7 +25,7 @@
if (!defined('GNUSOCIAL')) { exit(1); }
abstract class XrdAction extends Action
abstract class XrdAction extends ManagedAction
{
// json or xml for now, this may still be overriden because of
// our back-compatibility with StatusNet <=1.1.1
......@@ -59,15 +59,13 @@ abstract class XrdAction extends Action
protected function handle()
{
parent::handle();
$this->setXRD();
if (common_config('discovery', 'cors')) {
header('Access-Control-Allow-Origin: *');
}
$this->showPage();
parent::handle();
}
public function mimeType()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment