fix variable name

This commit is contained in:
Robin Appelman 2013-06-07 00:17:51 +02:00
parent cf7321915d
commit 0470a5ba94
1 changed files with 2 additions and 2 deletions

View File

@ -366,10 +366,10 @@ class OC_Helper {
/**
* Try to guess the mimetype based on filename
*
* @param string $name
* @param string $path
* @return string
*/
static public function getFileNameMimeType($name){
static public function getFileNameMimeType($path){
if(strpos($path, '.')) {
//try to guess the type by the file extension
if(!self::$mimetypes || self::$mimetypes != include 'mimetypes.list.php') {