Skip to content

Commit

Permalink
Fix error webfeed meta
Browse files Browse the repository at this point in the history
(cherry picked from commit d1c6fd1)
  • Loading branch information
churongcon authored and jonasraoni committed May 19, 2024
1 parent fb382b0 commit e4aad59
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions WebFeedPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,8 @@ public function setupTemplateLinks(): void
'issue' => 'frontend-issue',
default => 'frontend'
};

$className = explode('/', WebFeedGatewayPlugin::class);
$className = end($className);
foreach (WebFeedGatewayPlugin::FEED_MIME_TYPE as $feedType => $mimeType) {
$url = $request->url(null, 'gateway', 'plugin', [$className, $feedType]);
$url = $request->url(null, 'gateway', 'plugin', ['WebFeedGatewayPlugin', $feedType]);
$templateManager->addHeader("webFeedPlugin{$feedType}", "<link rel=\"alternate\" type=\"{$mimeType}\" href=\"{$url}\">", ['contexts' => $contexts]);
}

Expand Down

0 comments on commit e4aad59

Please sign in to comment.