11<?php
2-
3- use phpweb \Releases \Branches ;
4-
52include_once __DIR__ . '/../include/prepend.inc ' ;
63include_once __DIR__ . '/../include/branches.inc ' ;
74
@@ -18,9 +15,9 @@ function branches_to_show() {
1815 $ branches = [];
1916
2017 // Flatten out the majors.
21- foreach (Branches:: get_all_branches () as $ major_branches ) {
18+ foreach (get_all_branches () as $ major_branches ) {
2219 foreach ($ major_branches as $ branch => $ version ) {
23- if (version_compare ($ branch , '5.3 ' , 'ge ' ) && Branches:: getBranchSecurityEOLDate ($ branch ) > min_date ()) {
20+ if (version_compare ($ branch , '5.3 ' , 'ge ' ) && get_branch_security_eol_date ($ branch ) > min_date ()) {
2421 $ branches [$ branch ] = $ version ;
2522 }
2623 }
@@ -137,9 +134,9 @@ function date_horiz_coord(DateTime $date) {
137134 <g class="branches">
138135 <?php foreach ($ branches as $ branch => $ version ): ?>
139136 <?php
140- $ x_release = date_horiz_coord (Branches:: getBranchReleaseDate ($ branch ));
141- $ x_bug = date_horiz_coord (Branches:: getBranchBugsEOLDate ($ branch ));
142- $ x_eol = date_horiz_coord (Branches:: getBranchSecurityEOLDate ($ branch ));
137+ $ x_release = date_horiz_coord (get_branch_release_date ($ branch ));
138+ $ x_bug = date_horiz_coord (get_branch_bug_eol_date ($ branch ));
139+ $ x_eol = date_horiz_coord (get_branch_security_eol_date ($ branch ));
143140 ?>
144141 <rect class="stable" x="<?php echo $ x_release ?> " y="<?php echo $ version ['top ' ] ?> " width="<?php echo $ x_bug - $ x_release ?> " height="<?php echo $ branch_height ?> " />
145142 <rect class="security" x="<?php echo $ x_bug ?> " y="<?php echo $ version ['top ' ] ?> " width="<?php echo $ x_eol - $ x_bug ?> " height="<?php echo $ branch_height ?> " />
0 commit comments