summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorXheni Myrtaj <myrtajxheni@gmail.com>2019-05-27 21:54:58 +0200
committerXheni Myrtaj <myrtajxheni@gmail.com>2019-05-29 22:43:23 +0200
commitd227f4d34ca0f7a6877063784f75481ff6631a4a (patch)
tree75a759241b08df0a1801633484266f0b7a48887c /lib/private/Files
parent89c701382f7a3dfaae3a45d1001ab26fb08cdd8a (diff)
downloadnextcloud-server-d227f4d34ca0f7a6877063784f75481ff6631a4a.tar.gz
nextcloud-server-d227f4d34ca0f7a6877063784f75481ff6631a4a.zip
Do not fail integrity check if mimetype list is changed
Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Type/Detection.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Files/Type/Detection.php b/lib/private/Files/Type/Detection.php
index 32075627632..9bbbd0e07c7 100644
--- a/lib/private/Files/Type/Detection.php
+++ b/lib/private/Files/Type/Detection.php
@@ -133,6 +133,12 @@ class Detection implements IMimeTypeDetector {
return $this->mimeTypeAlias;
}
+ public function getOnlyDefaultAliases() {
+ $this->loadMappings();
+ $this->mimeTypeAlias = json_decode(file_get_contents($this->defaultConfigDir . '/mimetypealiases.dist.json'), true);
+ return $this->mimeTypeAlias;
+ }
+
/**
* Add mimetype mappings if they are not yet present
*/