<?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
*
namespace Friendica\Module;
use Friendica\BaseModule;
+use Friendica\Core\System;
/**
* Return the default robots.txt
{
protected function rawContent(array $request = [])
{
- $allDisalloweds = [
+ $allDisallowed = [
'/settings/',
'/admin/',
'/message/',
header('Content-Type: text/plain');
echo 'User-agent: *' . PHP_EOL;
- foreach ($allDisalloweds as $disallowed) {
+ foreach ($allDisallowed as $disallowed) {
echo 'Disallow: ' . $disallowed . PHP_EOL;
}
- DI::page()->logRuntime();
- exit();
+ System::exit();
}
}