Author: Kamil Tekiela (kamil-tekiela) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2022-07-06T15:27:20+01:00
Commit: https://github.com/php/web-php/commit/c6acddf116286ce272664c908055682f28e7e5c5 Raw diff: https://github.com/php/web-php/commit/c6acddf116286ce272664c908055682f28e7e5c5.diff Remove id prefix (#618) Changed paths: M src/News/Entry.php Diff: diff --git a/src/News/Entry.php b/src/News/Entry.php index 659a8e8800..e8f525de88 100755 --- a/src/News/Entry.php +++ b/src/News/Entry.php @@ -131,7 +131,7 @@ public function save(): self { self::ce($dom, "id", $archive, [], $item); self::ce($dom, "published", date(DATE_ATOM), [], $item); self::ce($dom, "updated", date(DATE_ATOM), [], $item); - self::ce($dom, "link", null, ['href' => "{$href}#id{$this->id}", "rel" => "alternate", "type" => "text/html"], $item); + self::ce($dom, "link", null, ['href' => "{$href}#{$this->id}", "rel" => "alternate", "type" => "text/html"], $item); self::ce($dom, "link", null, ['href' => $link, 'rel' => 'via', 'type' => 'text/html'], $item); if (!empty($this->conf_time)) { -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php