From: Robin Appelman Date: Sat, 24 Sep 2011 23:33:53 +0000 (+0200) Subject: remove some debug statements X-Git-Tag: v3.0~147 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6c2b22406c710a82f05d7449a90ba584ffc06a58;p=nextcloud-server.git remove some debug statements --- diff --git a/lib/filesystem.php b/lib/filesystem.php index d7c485d25b8..b97fa8d784a 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -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){