diff options
author | Jan-Christoph Borchardt <jan@unhosted.org> | 2012-04-15 13:32:45 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <jan@unhosted.org> | 2012-04-15 13:34:30 +0200 |
commit | 7ddd0434270fa1cc51769e812f257cf63b0ec92f (patch) | |
tree | 10a2cac32c4cdb05e4c88b9008d6b1e05e670faa /lib/filestorage | |
parent | d32799e4bf48412d71222401dba84aaab47a75a7 (diff) | |
download | nextcloud-server-7ddd0434270fa1cc51769e812f257cf63b0ec92f.tar.gz nextcloud-server-7ddd0434270fa1cc51769e812f257cf63b0ec92f.zip |
renamed extention to extension, also now only showing lowercase
Diffstat (limited to 'lib/filestorage')
-rw-r--r-- | lib/filestorage/common.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/filestorage/common.php b/lib/filestorage/common.php index f632474df01..f0bfc064cb5 100644 --- a/lib/filestorage/common.php +++ b/lib/filestorage/common.php @@ -100,11 +100,11 @@ abstract class OC_Filestorage_Common extends OC_Filestorage { } $head=fread($source,8192);//8kb should suffice to determine a mimetype if($pos=strrpos($path,'.')){ - $extention=substr($path,$pos); + $extension=substr($path,$pos); }else{ - $extention=''; + $extension=''; } - $tmpFile=OC_Helper::tmpFile($extention); + $tmpFile=OC_Helper::tmpFile($extension); file_put_contents($tmpFile,$head); $mime=OC_Helper::getMimeType($tmpFile); unlink($tmpFile); @@ -129,11 +129,11 @@ abstract class OC_Filestorage_Common extends OC_Filestorage { return false; } if($pos=strrpos($path,'.')){ - $extention=substr($path,$pos); + $extension=substr($path,$pos); }else{ - $extention=''; + $extension=''; } - $tmpFile=OC_Helper::tmpFile($extention); + $tmpFile=OC_Helper::tmpFile($extension); $target=fopen($tmpFile,'w'); $count=OC_Helper::streamCopy($source,$target); return $tmpFile; |