lib/private/Files/Type/Detection.php
/**
	 * Add the mimetype aliases if they are not yet present
	 */
Add the mimetype aliases if they are not yet present
Add the mimetype aliases if they are not yet present
private function loadAliases() {
		if (!empty($this->mimeTypeAlias)) {
			return;
		}
		$this->mimeTypeAlias = json_decode(file_get_contents($this->defaultConfigDir . '/mimetypealiases.dist.json'), true);
		if (file_exists($this->customConfigDir . '/mimetypealiases.json')) {
			$custom = json_decode(file_get_contents($this->customConfigDir . '/mimetypealiases.json'), true);
			$this->mimeTypeAlias = array_merge($this->mimeTypeAlias, $custom);
		}
	}
private function loadAliases ( ) { if ( ! empty ( $ this -> mimeTypeAlias ) ) { return ; } $ this -> mimeTypeAlias = json_decode ( file_get_contents ( $ this -> defaultConfigDir . '/mimetypealiases.dist.json' ) , true ) ; if ( file_exists ( $ this -> customConfigDir . '/mimetypealiases.json' ) ) { $ custom = json_decode ( file_get_contents ( $ this -> customConfigDir . '/mimetypealiases.json' ) , true ) ; $ this -> mimeTypeAlias = array_merge ( $ this -> mimeTypeAlias , $ custom ) ; } }
Add the mimetype aliases if they are not yet present
Add the mimetype aliases if they are not yet present