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

use conference urls for cfp/announcements

The createNewsEntry script was recently refactored (thanks Sara!) and a
regression slipped through.

For conference news entries before the refactor, we used to generate the
"alternate" links along the lines of:
http://php.net/conferences/index.php#id2019-01-01-1

After the refactor, that changed to the following:
https://www.php.net/index.php#id2019-01-01-1

And with this commit they look like:
https://www.php.net/conferences/index.php#id2019-01-01-1
This commit is contained in:
Peter Cowburn
2019-07-23 20:18:23 +01:00
parent 39daeda954
commit 4edd760ae9

View File

@@ -128,12 +128,12 @@ function getEntry(string $id): array {
if (array_intersect($entry['categories'], ['cfp', 'conferences'])) {
$entry['href'] = BASE . '/conferences/index.php';
$entry['conf-time'] = getConfTime();
} else {
$entry['href'] = BASE . '/index.php';
}
$entry['image'] = getImage();
$entry['content'] = getContent();
$entry['href'] = BASE . '/index.php';
$entry['archive'] = BASE . "/archive/" . date('Y', $_SERVER['REQUEST_TIME']) . ".php#$id";
$entry['via'] = $entry['image']['link'] ?? $entry['archive'];