summaryrefslogtreecommitdiffstats
path: root/lib/private/helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r--lib/private/helper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index 09b319e90c8..8efa0284a11 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -424,12 +424,12 @@ class OC_Helper {
*/
static public function getMimetypeDetector() {
if (!self::$mimetypeDetector) {
- $dist = file_get_contents(OC::$SERVERROOT . '/config/mimetypemapping.dist.json');
+ $dist = file_get_contents(OC::$configDir . '/mimetypemapping.dist.json');
$mimetypemapping = get_object_vars(json_decode($dist));
//Check if need to load custom mappings
- if (file_exists(OC::$SERVERROOT . '/config/mimetypemapping.json')) {
- $custom = file_get_contents(OC::$SERVERROOT . '/config/mimetypemapping.json');
+ if (file_exists(OC::$configDir . '/mimetypemapping.json')) {
+ $custom = file_get_contents(OC::$configDir . '/mimetypemapping.json');
$custom_mapping = get_object_vars(json_decode($custom));
$mimetypemapping = array_merge($mimetypemapping, $custom_mapping);
}