read categories information from the configuration
[pnews.git] / war / src / main / java / pnews / servlet / JSON.java
index 8146b78..a36367e 100644 (file)
@@ -34,7 +34,7 @@ public class JSON {
                 
                 for (Category cat: cats)
                         try {
-                                jcategories.addProperty(cat.getName(),
+                                jcategories.addProperty(cat.getLabel(),
                                                         articles.length);
                         } catch (IllegalArgumentException e) {
                                 LOG.log(Level.SEVERE, "Fail to retrieve articles", e);