cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1813041 - /cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java
Date Mon, 23 Oct 2017 16:48:52 GMT
Author: dkulp
Date: Mon Oct 23 16:48:52 2017
New Revision: 1813041

URL: http://svn.apache.org/viewvc?rev=1813041&view=rev
Log:
Make sure java brush is added if using old style codeblock config as the old style will no
longer honor the attribute and will default to java

Modified:
    cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java

Modified: cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java
URL: http://svn.apache.org/viewvc/cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java?rev=1813041&r1=1813040&r2=1813041&view=diff
==============================================================================
--- cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java (original)
+++ cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java Mon Oct 23 16:48:52 2017
@@ -612,6 +612,9 @@ public class Page extends AbstractPage i
                     }
                     if (lang == null) {
                         lang = params.get("");
+                        if (!StringUtils.isEmpty(lang)) {
+                            page.codeTypes.add("java");
+                        }
                     }
                     //System.out.println("l:  " + lang + "   " + params);
                     if (StringUtils.isEmpty(lang)) {



Mime
View raw message