Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 19:38:27 +0400
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 19:38:27 +0400
commitd0554bef069b29affa95ec3c2bf78af637703a90 (patch)
treef28c25fef284dc6b61425917e79a812c85274597 /apps/files_sharing
parent7ded9cf520f74b595bc0f8939ac59249b47ccbc9 (diff)
finish porting of the LOG calls or the apps to the public api
Diffstat (limited to 'apps/files_sharing')
-rwxr-xr-x[-rw-r--r--]apps/files_sharing/ajax/share.php4
-rwxr-xr-x[-rw-r--r--]apps/files_sharing/lib_share.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php
index 50c6d4c9d25..c704f653c11 100644..100755
--- a/apps/files_sharing/ajax/share.php
+++ b/apps/files_sharing/ajax/share.php
@@ -15,7 +15,7 @@ foreach ($sources as $source) {
$source = $userDirectory.$source;
// If the file doesn't exist, it may be shared with the current user
} else if (!$source = OC_Share::getSource($userDirectory.$source)) {
- OC_Log::write('files_sharing',"Shared file doesn't exists :".$source,OC_Log::ERROR);
+ OCP\Util::writeLog('files_sharing',"Shared file doesn't exists :".$source,OCP\Util::ERROR);
echo "false";
}
try {
@@ -24,7 +24,7 @@ foreach ($sources as $source) {
echo $shared->getToken();
}
} catch (Exception $exception) {
- OC_Log::write('files_sharing',"Unexpected Error : ".$exception->getMessage(),OC_Log::ERROR);
+ OC\Util::writeLog('files_sharing',"Unexpected Error : ".$exception->getMessage(),OCP\Util::ERROR);
echo "false";
}
}
diff --git a/apps/files_sharing/lib_share.php b/apps/files_sharing/lib_share.php
index 62ac05a5952..c5127c59cbd 100644..100755
--- a/apps/files_sharing/lib_share.php
+++ b/apps/files_sharing/lib_share.php
@@ -310,7 +310,7 @@ class OC_Share {
return $result[0]['permissions'];
}
} else {
- OC_Log::write('files_sharing',"Not existing parent folder : ".$target,OC_Log::ERROR);
+ OCP\Util::writeLog('files_sharing',"Not existing parent folder : ".$target,OCP\Util::ERROR);
return false;
}
}