* public/api/runs.php:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179585
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-02-03 Ryosuke Niwa <rniwa@webkit.org>
+
+ Unreviewed build fix. Declare $repository_id_to_name in the global scope.
+
+ * public/api/runs.php:
+
2015-02-03 Ryosuke Niwa <rniwa@webkit.org>
/api/runs.php should have main function
'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');
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'];