X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FRobotsTxt.php;h=3651382a00b4f5f7c3aeb397840a97e58b389458;hb=f114ad188353910f1714a2df04affb7e5ee58253;hp=47e11201d9575e8f58eb91d18892e880ccad5bcb;hpb=abe6724629b851c6cce965a0aa03658b9dae8c62;p=friendica.git diff --git a/src/Module/RobotsTxt.php b/src/Module/RobotsTxt.php index 47e11201d9..3651382a00 100644 --- a/src/Module/RobotsTxt.php +++ b/src/Module/RobotsTxt.php @@ -1,15 +1,35 @@ . + * + */ namespace Friendica\Module; use Friendica\BaseModule; +use Friendica\Core\System; /** * Return the default robots.txt */ class RobotsTxt extends BaseModule { - public static function rawContent($parameters) + protected function rawContent(array $request = []) { $allDisalloweds = [ '/settings/', @@ -25,6 +45,6 @@ class RobotsTxt extends BaseModule foreach ($allDisalloweds as $disallowed) { echo 'Disallow: ' . $disallowed . PHP_EOL; } - exit(); + System::exit(); } }