From c6ba5456972e1859f3c4c9b4773f7ccbf4fc756b Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 17 May 2014 15:14:34 +0200 Subject: [PATCH] XrdAction extends ManagedAction --- plugins/WebFinger/lib/xrdaction.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/WebFinger/lib/xrdaction.php b/plugins/WebFinger/lib/xrdaction.php index a57ccdb382..6d22631dc1 100644 --- a/plugins/WebFinger/lib/xrdaction.php +++ b/plugins/WebFinger/lib/xrdaction.php @@ -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()