summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-11 18:59:01 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-11 19:00:32 +0200
commit99790d68058b56e4a1faa0bba401287e5aa9eab1 (patch)
tree644f70c614bb64c0683879b2309605b39072df15 /lib/helper.php
parentef5e253bf54fb3ec9f12d4d208fee18db05b16fe (diff)
downloadnextcloud-server-99790d68058b56e4a1faa0bba401287e5aa9eab1.tar.gz
nextcloud-server-99790d68058b56e4a1faa0bba401287e5aa9eab1.zip
lots of image changes, use svg EVERYWHERE POSSIBLE
Diffstat (limited to 'lib/helper.php')
-rwxr-xr-xlib/helper.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/helper.php b/lib/helper.php
index fa5163ac266..272f4607011 100755
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -89,11 +89,11 @@ class OC_Helper {
}
/**
- * @brief get path to icon of mime type
+ * @brief get path to icon of file type
* @param $mimetype mimetype
* @returns the url
*
- * Returns the path to the image of this mime type.
+ * Returns the path to the image of this file type.
*/
public static function mimetypeIcon( $mimetype ){
global $SERVERROOT;
@@ -103,20 +103,20 @@ class OC_Helper {
// Is it a dir?
if( $mimetype == "dir" ){
- return "$WEBROOT/core/img/places/folder.png";
+ return "$WEBROOT/core/img/places/folder.svg";
}
// Icon exists?
- if( file_exists( "$SERVERROOT/core/img/mimetypes/$mimetype.png" )){
- return "$WEBROOT/core/img/mimetypes/$mimetype.png";
+ if( file_exists( "$SERVERROOT/core/img/filetypes/$mimetype.svg" )){
+ return "$WEBROOT/core/img/filetypes/$mimetype.svg";
}
- //try only the first part of the mimetype
+ //try only the first part of the filetype
$mimetype=substr($mimetype,0,strpos($mimetype,'-'));
- if( file_exists( "$SERVERROOT/core/img/mimetypes/$mimetype.png" )){
- return "$WEBROOT/core/img/mimetypes/$mimetype.png";
+ if( file_exists( "$SERVERROOT/core/img/filetypes/$mimetype.svg" )){
+ return "$WEBROOT/core/img/filetypes/$mimetype.svg";
}
else{
- return "$WEBROOT/core/img/mimetypes/file.png";
+ return "$WEBROOT/core/img/filetypes/file.svg";
}
}