]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/RobotsTxt.php
Merge pull request #12782 from annando/c2s-2
[friendica.git] / src / Module / RobotsTxt.php
index 1fcf1269edf72de6acd90c982a1a957fb6c4462d..caa1146421e7f6af255788344400f78d2e2a4570 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -22,6 +22,7 @@
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
+use Friendica\Core\System;
 
 /**
  * Return the default robots.txt
@@ -44,6 +45,6 @@ class RobotsTxt extends BaseModule
                foreach ($allDisalloweds as $disallowed) {
                        echo 'Disallow: ' . $disallowed . PHP_EOL;
                }
-               exit();
+               System::exit();
        }
 }