File handling changes for better logic

Also prepares for StoreRemoteMediaPlugin, coming up...
This commit is contained in:
Mikael Nordfeldth
2015-10-01 22:14:49 +02:00
parent 5b7deee0cc
commit 80bc7f0e25
4 changed files with 23 additions and 18 deletions

View File

@@ -1868,6 +1868,7 @@ function common_get_mime_media($type)
return strtolower($tmp[0]);
}
// Get only the mimetype and not additional info (separated from bare mime with semi-colon)
function common_bare_mime($mimetype)
{
$mimetype = mb_strtolower($mimetype);