Browse Source

Package name list under packages/list.json should be a json array not object

Nils Adermann 12 years ago
parent
commit
53bd62052b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Packagist/WebBundle/Controller/WebController.php

+ 1 - 1
src/Packagist/WebBundle/Controller/WebController.php

@@ -86,7 +86,7 @@ class WebController extends Controller
             ->getRepository('PackagistWebBundle:Package')
             ->getPackageNames();
 
-        return new Response(json_encode(array('packageNames' => $packageNames)), 200);
+        return new Response(json_encode(array('packageNames' => array_keys($packageNames))), 200);
     }
 
     /**