summaryrefslogtreecommitdiffstats
path: root/modules/markdown
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-12 02:29:29 -0700
committerUnknwon <u@gogs.io>2016-08-14 23:52:24 -0700
commit15845cb28763c1542556ad61d2aa9735541dbf45 (patch)
tree94b2053202fcf5270e0697fc37c38203310571ed /modules/markdown
parentd0a0239bacf02eb004634dfe1bb0a3f7dfe5adb6 (diff)
downloadgitea-15845cb28763c1542556ad61d2aa9735541dbf45.tar.gz
gitea-15845cb28763c1542556ad61d2aa9735541dbf45.zip
Code clean up for new config options
Diffstat (limited to 'modules/markdown')
-rw-r--r--modules/markdown/markdown.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markdown/markdown.go b/modules/markdown/markdown.go
index b24fe2e40a..a6cdf222e5 100644
--- a/modules/markdown/markdown.go
+++ b/modules/markdown/markdown.go
@@ -54,7 +54,7 @@ func isLink(link []byte) bool {
// based on its extension.
func IsMarkdownFile(name string) bool {
extension := strings.ToLower(filepath.Ext(name))
- for _, ext := range setting.Markdown.MdFileExtensions {
+ for _, ext := range setting.Markdown.FileExtensions {
if strings.ToLower(ext) == extension {
return true
}