]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing namespace
authorThomas Mueller <thomas.mueller@tmit.eu>
Mon, 4 Feb 2013 19:49:01 +0000 (20:49 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Mon, 4 Feb 2013 19:49:01 +0000 (20:49 +0100)
lib/files/storage/local.php

index 9fc9d375bb3b96c22e627f1ba769b47bbfb62093..a5db4ba91947bb2961f491f1ed47c1164911873f 100644 (file)
@@ -184,7 +184,7 @@ class Local extends \OC\Files\Storage\Common{
                // Windows OS: we use COM to access the filesystem
                if (strpos($name, 'win') !== false) {
                        if (class_exists('COM')) {
-                               $fsobj = new COM("Scripting.FileSystemObject");
+                               $fsobj = new \COM("Scripting.FileSystemObject");
                                $f = $fsobj->GetFile($fullPath);
                                return $f->Size;
                        }
@@ -197,7 +197,7 @@ class Local extends \OC\Files\Storage\Common{
                                return (float)exec('stat -c %s ' . escapeshellarg($fullPath));
                        }
                } else {
-                       OC_Log::write('core', 'Unable to determine file size of "'.$fullPath.'". Unknown OS: '.$name, OC_Log::ERROR);
+                       \OC_Log::write('core', 'Unable to determine file size of "'.$fullPath.'". Unknown OS: '.$name, \OC_Log::ERROR);
                }
 
                return 0;