1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

use updated "Strip http://php.net" method for more news links

Following on from a similar change in 47f8ecc688, update more places
where we manipulate the URL.
This commit is contained in:
Peter Cowburn
2019-07-23 20:07:25 +01:00
parent c41f8bffe7
commit 39daeda954
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ $panels = '<p class="prepend"><a href="https://wiki.php.net/conferences">Want to
foreach($frontpage as $entry) {
$link = substr($entry["id"], 15); // Strip http://php.net/
$link = preg_replace('~^(http://php.net/|https://www.php.net/)~', '', $entry["id"]);
$id = parse_url($entry["id"], PHP_URL_FRAGMENT);
$date = date_format(date_create($entry["updated"]), 'Y-m-d');
$content .= '<div class="newsentry">';