Skip to content

Commit c0c3957

Browse files
committed
Update feed with Branches::getReleaseData()
1 parent f9a08f7 commit c0c3957

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

releases/feed.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
use phpweb\Releases\Branches;
4+
35
header("Content-Type: application/atom+xml");
46

57
include __DIR__ . "/../include/version.inc";
@@ -22,7 +24,7 @@
2224
ob_start();
2325

2426
// Flatten major versions out of RELEASES.
25-
$RELEASED_VERSIONS = array_reduce($RELEASES, 'array_merge', []);
27+
$RELEASED_VERSIONS = array_reduce(Branches::getReleaseData(), 'array_merge', []);
2628
$FEED_UPDATED = 0;
2729
krsort($RELEASED_VERSIONS);
2830
foreach ($RELEASED_VERSIONS as $version => $release) {

0 commit comments

Comments
 (0)