From b052b33bbd4fc637b53c867c8b4d0bf4d80f708b Mon Sep 17 00:00:00 2001 From: zcodes Date: Fri, 29 Jul 2016 22:02:50 +0800 Subject: [PATCH 1/2] Fixed fontawesome relative path If install flarum in the site's root directory, it seems nothing is wrong because the server software will trim the path, but if install flarum in a sub directory, the font file of fontawesome will not load correctly. --- framework/core/less/lib/lib.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/less/lib/lib.less b/framework/core/less/lib/lib.less index 45396ecd3..55e6e0e7a 100755 --- a/framework/core/less/lib/lib.less +++ b/framework/core/less/lib/lib.less @@ -1,5 +1,5 @@ @import "font-awesome.less"; -@fa-font-path: "../../assets/fonts"; +@fa-font-path: "../assets/fonts"; @import "normalize.less"; @import "print.less"; From 33b0a4ecbaa47c8f39eabb0008ec9571e2e539d2 Mon Sep 17 00:00:00 2001 From: zcodes Date: Fri, 29 Jul 2016 22:02:50 +0800 Subject: [PATCH 2/2] reduce fontawesome relative path in less files. --- framework/core/less/lib/lib.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/less/lib/lib.less b/framework/core/less/lib/lib.less index 55e6e0e7a..4d052f662 100755 --- a/framework/core/less/lib/lib.less +++ b/framework/core/less/lib/lib.less @@ -1,5 +1,5 @@ @import "font-awesome.less"; -@fa-font-path: "../assets/fonts"; +@fa-font-path: "./fonts"; @import "normalize.less"; @import "print.less";