From 4c5f6b08bc6feaca38b6afa1bd3b0086363e1382 Mon Sep 17 00:00:00 2001 From: "rniwa@webkit.org" Date: Sat, 21 Nov 2015 03:16:11 +0000 Subject: [PATCH] Build fix for old version of PHP. * public/api/runs.php: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192717 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- Websites/perf.webkit.org/ChangeLog | 6 ++++++ Websites/perf.webkit.org/public/api/runs.php | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Websites/perf.webkit.org/ChangeLog b/Websites/perf.webkit.org/ChangeLog index d4885eb649f4..c05a935e5d4f 100644 --- a/Websites/perf.webkit.org/ChangeLog +++ b/Websites/perf.webkit.org/ChangeLog @@ -1,3 +1,9 @@ +2015-11-20 Ryosuke Niwa + + Build fix for old version of PHP. + + * public/api/runs.php: + 2015-11-20 Ryosuke Niwa Perf dashboard's should not include results more than 366 days old in JSON diff --git a/Websites/perf.webkit.org/public/api/runs.php b/Websites/perf.webkit.org/public/api/runs.php index 845bb0e8758a..728c76883ac8 100644 --- a/Websites/perf.webkit.org/public/api/runs.php +++ b/Websites/perf.webkit.org/public/api/runs.php @@ -41,9 +41,10 @@ function main($path) { foreach ($config_rows as $config) $generator->fetch_runs($config['config_type'], $config['config_id'], $config['config_runs_last_modified']); - $content = success_json($generator->results()); + $results = $generator->results(); + $content = success_json($results); if (!$should_echo_results) { - echo $generator->results()['elapsedTime']; + echo $results['elapsedTime']; return; } -- 2.36.0