[web-php] master: Remove id prefix (#618)
| From: | Kamil Tekiela via GitHub | Date: | Wed, 06 Jul 2022 14:33:37 +0000 |
| Subject: | [web-php] master: Remove id prefix (#618) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-30279@lists.php.net to get a copy of this message | ||
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)) {