diff options
author | zotlabs <mike@macgirvin.com> | 2017-09-14 15:02:18 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-09-14 15:02:18 -0700 |
commit | b1876ac14fc4f9b7e39989ef7e69c8135a25c13f (patch) | |
tree | 9fd6068adf3735f5f391b4c5cf6df1b091ac8e51 /Zotlabs/Lib/NativeWikiPage.php | |
parent | e8e61c83d572b41664a1066d60f2f78ef596183e (diff) | |
parent | 46b6415f5fddcea5aa7c4c55842405b68a7ccd6a (diff) | |
download | volse-hubzilla-b1876ac14fc4f9b7e39989ef7e69c8135a25c13f.tar.gz volse-hubzilla-b1876ac14fc4f9b7e39989ef7e69c8135a25c13f.tar.bz2 volse-hubzilla-b1876ac14fc4f9b7e39989ef7e69c8135a25c13f.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Lib/NativeWikiPage.php')
-rw-r--r-- | Zotlabs/Lib/NativeWikiPage.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Zotlabs/Lib/NativeWikiPage.php b/Zotlabs/Lib/NativeWikiPage.php index ffd5aec31..558a70a3c 100644 --- a/Zotlabs/Lib/NativeWikiPage.php +++ b/Zotlabs/Lib/NativeWikiPage.php @@ -607,10 +607,13 @@ class NativeWikiPage { } static public function get_file_ext($arr) { - if($arr['mimeType'] == 'text/bbcode') + if($arr['mimeType'] === 'text/bbcode') return '.bb'; - else + elseif($arr['mimeType'] === 'text/markdown') return '.md'; + elseif($arr['mimeType'] === 'text/plain') + return '.txt'; + } // This function is derived from |