Ver código fonte

Fixed not found.

xaav 14 anos atrás
pai
commit
762906cc34

+ 0 - 4
src/Packagist/WebBundle/Controller/WebController.php

@@ -131,10 +131,6 @@ class WebController extends Controller
 
         $versions = $tag->getVersions();
 
-        if (empty($versions)) {
-            throw new NotFoundHttpException();
-        }
-
         foreach($versions as $version) {
             $packages[] = $version->getPackage();
         }

+ 2 - 0
src/Packagist/WebBundle/Resources/views/Web/index.html.twig

@@ -24,5 +24,7 @@
                 This package has no released version yet, and little information is available yet.
             {% endif %}
         </section>
+    {% else %}
+        No packages found.
     {% endfor %}
 {% endblock %}