Commit: 2c6315e737957afe892159627631e16eb83224a8 Author: Adam Harvey <[email protected]> Thu, 3 Dec 2015 12:34:45 -0800 Parents: c36c03273c1c5d11abfffee0eafe8c60b860bfdd Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=2c6315e737957afe892159627631e16eb83224a8 Log: Ensure .0 releases get a date in the same place as old releases. Changed paths: M include/branches.inc Diff: diff --git a/include/branches.inc b/include/branches.inc index a1bd72b..4290ac3 100644 --- a/include/branches.inc +++ b/include/branches.inc @@ -211,7 +211,10 @@ function get_initial_release($branch) { /* If there's only been one release on the branch, it won't be in * $OLDRELEASES yet, so let's check $RELEASES. */ if (isset($GLOBALS['RELEASES'][$major]["$branch.0"])) { - return $GLOBALS['RELEASES'][$major]["$branch.0"]; + // Fake a date like we have on the oldreleases array. + $release = $GLOBALS['RELEASES'][$major]["$branch.0"]; + $release['date'] = $release['source'][0]['date']; + return $release; } // Shrug. -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
