add text/plain type to wiki

This commit is contained in:
zotlabs
2017-09-13 22:37:18 -07:00
parent 5be132f877
commit 55aaabc2f1
3 changed files with 19 additions and 9 deletions

View File

@@ -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