From: Mikael Nordfeldth Date: Fri, 10 Jul 2015 21:10:24 +0000 (+0200) Subject: FoafAction now a ManagedAction X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ad453785f08ec7d37067a5b9b25ac71ddcb83c6e;p=quix0rs-gnu-social.git FoafAction now a ManagedAction --- diff --git a/actions/foaf.php b/actions/foaf.php index bcdc86d886..260388ba44 100644 --- a/actions/foaf.php +++ b/actions/foaf.php @@ -17,24 +17,22 @@ * along with this program. If not, see . */ -if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } +if (!defined('GNUSOCIAL')) { exit(1); } define('LISTENER', 1); define('LISTENEE', -1); define('BOTH', 0); // @todo XXX: Documentation missing. -class FoafAction extends Action +class FoafAction extends ManagedAction { function isReadOnly($args) { return true; } - function prepare($args) + protected function doPreparation() { - parent::prepare($args); - $nickname_arg = $this->arg('nickname'); if (empty($nickname_arg)) { @@ -69,10 +67,8 @@ class FoafAction extends Action return true; } - function handle($args) + public function showPage() { - parent::handle($args); - header('Content-Type: application/rdf+xml'); $this->startXML();