diff --git a/conferences/index.php b/conferences/index.php index 14daf183c..1bb5cdc55 100644 --- a/conferences/index.php +++ b/conferences/index.php @@ -29,7 +29,7 @@ $panels = '
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 .= '