lib/private/Files/Type/Detection.php
/**
	 * Add mimetype mappings if they are not yet present
	 */
Add mimetype mappings if they are not yet present
Add mimetype mappings if they are not yet present
private function loadMappings() {
		if (!empty($this->mimetypes)) {
			return;
		}
		$mimetypeMapping = json_decode(file_get_contents($this->defaultConfigDir . '/mimetypemapping.dist.json'), true);
		if (file_exists($this->customConfigDir . '/mimetypemapping.json')) {
			$custom = json_decode(file_get_contents($this->customConfigDir . '/mimetypemapping.json'), true);
			$mimetypeMapping = array_merge($mimetypeMapping, $custom);
		}
		$this->registerTypeArray($mimetypeMapping);
	}
private function loadMappings ( ) { if ( ! empty ( $ this -> mimetypes ) ) { return ; } $ mimetypeMapping = json_decode ( file_get_contents ( $ this -> defaultConfigDir . '/mimetypemapping.dist.json' ) , true ) ; if ( file_exists ( $ this -> customConfigDir . '/mimetypemapping.json' ) ) { $ custom = json_decode ( file_get_contents ( $ this -> customConfigDir . '/mimetypemapping.json' ) , true ) ; $ mimetypeMapping = array_merge ( $ mimetypeMapping , $ custom ) ; } $ this -> registerTypeArray ( $ mimetypeMapping ) ; }
Add mimetype mappings if they are not yet present
Add mimetype mappings if they are not yet present
//Check if need to load custom mappings