From 6919dda958d2cf5cbc7bd054121a95eb22851469 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 7 Jul 2015 19:45:01 +0200 Subject: [PATCH] RobotstxtAction migrated to ManagedAction --- actions/robotstxt.php | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/actions/robotstxt.php b/actions/robotstxt.php index d686042cb1..fdfc2bd1bd 100644 --- a/actions/robotstxt.php +++ b/actions/robotstxt.php @@ -27,9 +27,7 @@ * along with this program. If not, see . */ -if (!defined('STATUSNET')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } /** * Prints out a static robots.txt @@ -40,19 +38,9 @@ if (!defined('STATUSNET')) { * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3 * @link http://status.net/ */ -class RobotstxtAction extends Action +class RobotstxtAction extends ManagedAction { - /** - * Handles requests - * - * Since this is a relatively static document, we - * don't do a prepare() - * - * @param array $args GET, POST, and URL params; unused. - * - * @return void - */ - function handle($args) + public function showPage() { if (Event::handle('StartRobotsTxt', array($this))) { -- 2.39.5