DevHeads.net

com web/php: Generalize flattening of RELEASES for feed: releases/feed.php

Link: <a href="http://git.php.net/?p=web/php.git;a=commitdiff;h=01d2a8551743605ce3fd22d796fb9d077abfd34a" title="http://git.php.net/?p=web/php.git;a=commitdiff;h=01d2a8551743605ce3fd22d796fb9d077abfd34a">http://git.php.net/?p=web/php.git;a=commitdiff;h=01d2a8551743605ce3fd22d...</a>

Log:
Generalize flattening of RELEASES for feed

Changed paths:
M releases/feed.php

Diff:
diff --git a/releases/feed.php b/releases/feed.php
index aa218fc..c76bbf4 100644
--- a/releases/feed.php
+++ b/releases/feed.php
@@ -20,9 +20,9 @@ XML;

/* FIX silly editor highlighting */?><?php

+// Flatten major versions out of RELEASES.
+$RELEASED_VERSIONS = array_reduce($RELEASES, 'array_merge', []);
$FEED_UPDATED = 0;
-// $RELEASED_VERSIONS = array_merge($RELEASES[5], $RELEASES[7]);
-$RELEASED_VERSIONS = $RELEASES[7];
krsort($RELEASED_VERSIONS);
foreach ($RELEASED_VERSIONS as $version => $release) {
$published = date(DATE_ATOM, strtotime($release["source"][0]["date"]));