Skip to content

Commit

Permalink
fix theme_url
Browse files Browse the repository at this point in the history
  • Loading branch information
trytrytryiii committed Mar 2, 2017
1 parent 2902aae commit c1d4fb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/tale/ext/Commons.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public final class Commons {
private static final List EMPTY = new ArrayList(0);

private static final Random rand = new Random();

private static final String TEMPLATES = "/templates/";

public static void setSiteService(SiteService ss) {
siteService = ss;
Expand Down Expand Up @@ -123,7 +125,7 @@ public static String substr(String str, int len) {
* @return
*/
public static String theme_url() {
return Commons.site_url(BaseController.THEME);
return Commons.site_url(TEMPLATES + BaseController.THEME);
}

/**
Expand All @@ -133,7 +135,7 @@ public static String theme_url() {
* @return
*/
public static String theme_url(String sub) {
return Commons.site_url(BaseController.THEME + sub);
return Commons.site_url(TEMPLATES + BaseController.THEME + sub);
}


Expand Down

0 comments on commit c1d4fb7

Please sign in to comment.