Title: [179585] trunk/Websites/perf.webkit.org
Revision
179585
Author
[email protected]
Date
2015-02-03 17:26:13 -0800 (Tue, 03 Feb 2015)

Log Message

Unreviewed build fix. Declare $repository_id_to_name in the global scope.

* public/api/runs.php:

Modified Paths

Diff

Modified: trunk/Websites/perf.webkit.org/ChangeLog (179584 => 179585)


--- trunk/Websites/perf.webkit.org/ChangeLog	2015-02-04 01:23:58 UTC (rev 179584)
+++ trunk/Websites/perf.webkit.org/ChangeLog	2015-02-04 01:26:13 UTC (rev 179585)
@@ -1,5 +1,11 @@
 2015-02-03  Ryosuke Niwa  <[email protected]>
 
+        Unreviewed build fix. Declare $repository_id_to_name in the global scope.
+
+        * public/api/runs.php:
+
+2015-02-03  Ryosuke Niwa  <[email protected]>
+
         /api/runs.php should have main function
         https://bugs.webkit.org/show_bug.cgi?id=141220
 

Modified: trunk/Websites/perf.webkit.org/public/api/runs.php (179584 => 179585)


--- trunk/Websites/perf.webkit.org/public/api/runs.php	2015-02-04 01:23:58 UTC (rev 179584)
+++ trunk/Websites/perf.webkit.org/public/api/runs.php	2015-02-04 01:26:13 UTC (rev 179585)
@@ -50,7 +50,11 @@
         'builder' => $run['build_builder']);
 }
 
+$repository_id_to_name = array();
+
 function main($path) {
+    global $repository_id_to_name;
+
     if (count($path) != 1)
         exit_with_error('InvalidRequest');
 
@@ -74,7 +78,6 @@
     if (!$config_rows)
         exit_with_error('ConfigurationNotFound');
 
-    $repository_id_to_name = array();
     if ($repository_table = $db->fetch_table('repositories')) {
         foreach ($repository_table as $repository)
             $repository_id_to_name[$repository['repository_id']] = $repository['repository_name'];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to