mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
remove some debug statements
This commit is contained in:
parent
57bffdb46a
commit
6c2b22406c
1 changed files with 0 additions and 3 deletions
|
|
@ -286,7 +286,6 @@ class OC_Filesystem{
|
|||
return self::basicOperation('file_get_contents',$path,array('read'));
|
||||
}
|
||||
static public function file_put_contents($path,$data){
|
||||
if(defined("DEBUG") && DEBUG) {error_log($data);}
|
||||
return self::basicOperation('file_put_contents',$path,array('create','write'),$data);
|
||||
}
|
||||
static public function unlink($path){
|
||||
|
|
@ -393,7 +392,6 @@ class OC_Filesystem{
|
|||
}
|
||||
}
|
||||
static public function fromUploadedFile($tmpFile,$path){
|
||||
if(defined("DEBUG") && DEBUG) {error_log('upload');}
|
||||
if(OC_FileProxy::runPreProxies('fromUploadedFile',$tmpFile,$path) and self::canWrite($path) and $storage=self::getStorage($path)){
|
||||
$run=true;
|
||||
$exists=self::file_exists($path);
|
||||
|
|
@ -403,7 +401,6 @@ class OC_Filesystem{
|
|||
if($run){
|
||||
OC_Hook::emit( 'OC_Filesystem', 'write', array( 'path' => $path, 'run' => &$run));
|
||||
}
|
||||
if(defined("DEBUG") && DEBUG) {error_log('upload2');}
|
||||
if($run){
|
||||
$result=$storage->fromUploadedFile($tmpFile,self::getInternalPath($path));
|
||||
if(!$exists){
|
||||
|
|
|
|||
Loading…
Reference in a new issue