]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove some debug statements
authorRobin Appelman <icewind1991@gmail.com>
Sat, 24 Sep 2011 23:33:53 +0000 (01:33 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Sat, 24 Sep 2011 23:33:53 +0000 (01:33 +0200)
lib/filesystem.php

index d7c485d25b8e0528c3275eb8b646a487cbe9a327..b97fa8d784a12e34b86607d89caab0d107d66b50 100644 (file)
@@ -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){