com web/php: Ensure .0 releases get a date in the same place as old releases.: include/branches.inc

From: Date: Thu, 03 Dec 2015 20:34:45 +0000
Subject: com web/php: Ensure .0 releases get a date in the same place as old releases.: include/branches.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-24338@lists.php.net to get a copy of this message
Commit: 2c6315e737957afe892159627631e16eb83224a8 Author: Adam Harvey <aharvey@php.net> 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.

« previous php.webmaster (#24338) next »