mirror of
https://github.com/typecho/typecho.git
synced 2025-01-16 12:09:41 +01:00
parent
8035b22347
commit
8ff55f5266
@ -377,7 +377,7 @@ class Request
|
||||
* @param string|null $default
|
||||
* @return string|null
|
||||
*/
|
||||
public function getServer(string $name, string $default = null): ?string
|
||||
public function getServer(string $name, ?string $default = null): ?string
|
||||
{
|
||||
return $_SERVER[$name] ?? $default;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ class Feed extends Contents
|
||||
*/
|
||||
public function execute()
|
||||
{
|
||||
$feedPath = $this->request->get('feed');
|
||||
$feedPath = $this->request->get('feed', '/');
|
||||
$feedType = FeedGenerator::RSS2;
|
||||
$feedContentType = 'application/rss+xml';
|
||||
$currentFeedUrl = $this->options->feedUrl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user