|
|
|
@ -137,18 +137,6 @@ class OC_Helper { |
|
|
|
|
return OC::$server->getURLGenerator()->imagePath($app, $image); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get path to icon of file type |
|
|
|
|
* @param string $mimetype mimetype |
|
|
|
|
* @return string the url |
|
|
|
|
* |
|
|
|
|
* Returns the path to the image of this file type. |
|
|
|
|
* @deprecated 8.2.0 Use \OC::$server->getMimeTypeDetector()->mimeTypeIcon($mimetype) |
|
|
|
|
*/ |
|
|
|
|
public static function mimetypeIcon($mimetype) { |
|
|
|
|
return \OC::$server->getMimeTypeDetector()->mimeTypeIcon($mimetype); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get path to preview of file |
|
|
|
|
* @param string $path path |
|
|
|
@ -335,17 +323,6 @@ class OC_Helper { |
|
|
|
|
return self::$templateManager; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Try to guess the mimetype based on filename |
|
|
|
|
* |
|
|
|
|
* @param string $path |
|
|
|
|
* @return string |
|
|
|
|
* @deprecated 8.2.0 Use \OC::$server->getMimeTypeDetector()->detectPath($path) |
|
|
|
|
*/ |
|
|
|
|
static public function getFileNameMimeType($path) { |
|
|
|
|
return \OC::$server->getMimeTypeDetector()->detectPath($path); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* detect if a given program is found in the search PATH |
|
|
|
|
* |
|
|
|
|