aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-13 22:37:18 -0700
committerzotlabs <mike@macgirvin.com>2017-09-13 22:37:18 -0700
commit55aaabc2f13a36f73af944e17558b59f265322ea (patch)
tree298019d07ebd66be2e38b43a67ff034cc27002dd /Zotlabs/Lib
parent5be132f877f792e7b122a2b6ca18934b31b2f10c (diff)
downloadvolse-hubzilla-55aaabc2f13a36f73af944e17558b59f265322ea.tar.gz
volse-hubzilla-55aaabc2f13a36f73af944e17558b59f265322ea.tar.bz2
volse-hubzilla-55aaabc2f13a36f73af944e17558b59f265322ea.zip
add text/plain type to wiki
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/NativeWikiPage.php7
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