diff options
Diffstat (limited to 'apps/files_sharing')
-rwxr-xr-x[-rw-r--r--] | apps/files_sharing/ajax/share.php | 4 | ||||
-rwxr-xr-x[-rw-r--r--] | apps/files_sharing/lib_share.php | 2 |
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; } } |