11<?php
2-
3- use phpweb \Releases \Branches ;
4-
52include_once __DIR__ . '/../include/prepend.inc ' ;
63include_once __DIR__ . '/../include/branches.inc ' ;
74require_once __DIR__ . '/../include/prepend.inc ' ;
@@ -20,9 +17,9 @@ function branches_to_show() {
2017 $ branches = [];
2118
2219 // Flatten out the majors.
23- foreach (Branches:: get_all_branches () as $ major_branches ) {
20+ foreach (get_all_branches () as $ major_branches ) {
2421 foreach ($ major_branches as $ branch => $ version ) {
25- if (version_compare ($ branch , '5.3 ' , 'ge ' ) && Branches:: getBranchSecurityEOLDate ($ branch ) > min_date ()) {
22+ if (version_compare ($ branch , '5.3 ' , 'ge ' ) && get_branch_security_eol_date ($ branch ) > min_date ()) {
2623 $ branches [$ branch ] = $ version ;
2724 }
2825 }
@@ -139,9 +136,9 @@ function date_horiz_coord(DateTime $date) {
139136 <g class="branches">
140137 <?php foreach ($ branches as $ branch => $ version ): ?>
141138 <?php
142- $ x_release = date_horiz_coord (Branches:: getBranchReleaseDate ($ branch ));
143- $ x_bug = date_horiz_coord (Branches:: getBranchBugsEOLDate ($ branch ));
144- $ x_eol = date_horiz_coord (Branches:: getBranchSecurityEOLDate ($ branch ));
139+ $ x_release = date_horiz_coord (get_branch_release_date ($ branch ));
140+ $ x_bug = date_horiz_coord (get_branch_bug_eol_date ($ branch ));
141+ $ x_eol = date_horiz_coord (get_branch_security_eol_date ($ branch ));
145142 ?>
146143 <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 ?> " />
147144 <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