X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Frobots_txt.php;h=29f520b18cdce9252d235461b66b168afce506d0;hb=5b4fb945a2f8e950d3f3da8ae1fc8127ff887568;hp=b839d6a03c1bda69c2b76018e70e3d88b9635e6e;hpb=56ee734b00aead633d5d213a6b140b75bc17ba96;p=friendica.git diff --git a/mod/robots_txt.php b/mod/robots_txt.php index b839d6a03c..29f520b18c 100644 --- a/mod/robots_txt.php +++ b/mod/robots_txt.php @@ -6,6 +6,7 @@ * @version 0.1.2 */ +use Friendica\App; /** * @brief Return default robots.txt when init @@ -14,11 +15,11 @@ */ function robots_txt_init(App $a) { - $allDisalloweds = array( + $allDisalloweds = [ '/settings/', '/admin/', '/message/', - ); + ]; header('Content-Type: text/plain'); echo 'User-agent: *' . PHP_EOL;