diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-01-16 14:36:11 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-01-16 14:36:11 +0100 |
commit | d7ed456f965a8fbc3cf44ebf026f6f828cca2242 (patch) | |
tree | ad8c921f857727bc20ee5691d2ed90d803354111 | |
parent | 96e2f15d8a6eee83e30bdf77ef3582f0c26b52e0 (diff) | |
download | nextcloud-server-d7ed456f965a8fbc3cf44ebf026f6f828cca2242.tar.gz nextcloud-server-d7ed456f965a8fbc3cf44ebf026f6f828cca2242.zip |
forgot to merge something
-rw-r--r-- | lib/filesystem.php | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php index 6568a07a59c..eeca27d3a9a 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -446,29 +446,7 @@ class OC_Filesystem{ } } } -<<<<<<< HEAD -======= - static public function fromUploadedFile($tmpFile,$path){ - if(OC_FileProxy::runPreProxies('fromUploadedFile',$tmpFile,$path) and self::isValidPath($path) and $storage=self::getStorage($path)){ - $run=true; - $exists=self::file_exists($path); - if(!$exists){ - OC_Hook::emit( self::CLASSNAME, self::signal_create, array( self::signal_param_path => $path, self::signal_param_run => &$run)); - } - if($run){ - OC_Hook::emit( self::CLASSNAME, self::signal_write, array( self::signal_param_path => $path, self::signal_param_run => &$run)); - } - if($run){ - $result=$storage->fromUploadedFile($tmpFile,self::getInternalPath($path)); - if(!$exists){ - OC_Hook::emit( self::CLASSNAME, self::signal_post_create, array( self::signal_param_path => $path)); - } - OC_Hook::emit( self::CLASSNAME, self::signal_post_write, array( self::signal_param_path => $path)); - return $result; - } - } - } ->>>>>>> master + static public function getMimeType($path){ return self::basicOperation('getMimeType',$path); } |