aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/filesystemview.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index 3045fc8b88c..95873bd87cf 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -283,12 +283,12 @@ class OC_FilesystemView {
if(OC_Filesystem::isValidPath($path)){
$source=$this->fopen($path,'r');
if($source){
- $extention='';
+ $extension='';
$extOffset=strpos($path,'.');
if($extOffset !== false) {
- $extention=substr($path,strrpos($path,'.'));
+ $extension=substr($path,strrpos($path,'.'));
}
- $tmpFile=OC_Helper::tmpFile($extention);
+ $tmpFile=OC_Helper::tmpFile($extension);
file_put_contents($tmpFile,$source);
return $tmpFile;
}