diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 17:38:27 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 17:38:27 +0200 |
commit | d0554bef069b29affa95ec3c2bf78af637703a90 (patch) | |
tree | f28c25fef284dc6b61425917e79a812c85274597 /apps/files_sharing/ajax | |
parent | 7ded9cf520f74b595bc0f8939ac59249b47ccbc9 (diff) | |
download | nextcloud-server-d0554bef069b29affa95ec3c2bf78af637703a90.tar.gz nextcloud-server-d0554bef069b29affa95ec3c2bf78af637703a90.zip |
finish porting of the LOG calls or the apps to the public api
Diffstat (limited to 'apps/files_sharing/ajax')
-rwxr-xr-x[-rw-r--r--] | apps/files_sharing/ajax/share.php | 4 |
1 files changed, 2 insertions, 2 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"; } } |