X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Frobotstxt.php;h=4df04b564a5b46127578c12c611f352dd80e2de6;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=d686042cb12fe8e52a2a74a4fb910c1a57a05582;hpb=325cb4833db7e3fd396720f12a27b880b63f4173;p=quix0rs-gnu-social.git diff --git a/actions/robotstxt.php b/actions/robotstxt.php index d686042cb1..4df04b564a 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))) { @@ -88,7 +76,7 @@ class RobotstxtAction extends Action * * @return boolean is read only action? */ - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; }