Merge pull request #19603 from owncloud/fix-invalid-class-usage

OC_Log not longer exists
This commit is contained in:
Thomas Müller 2015-10-06 14:46:02 +02:00
commit 191f1b2d49
1 changed files with 1 additions and 1 deletions

View File

@ -719,7 +719,7 @@ class Share extends Constants {
if ($checkExists['uid_owner'] != $uidOwner || $checkExists['share_type'] == $shareType) {
$message = 'Sharing %s failed, because this item is already shared with user %s';
$message_t = $l->t('Sharing %s failed, because this item is already shared with user %s', array($itemSourceName, $shareWith));
\OC_Log::write('OCP\Share', sprintf($message, $itemSourceName, $shareWith), \OC_Log::ERROR);
\OCP\Util::writeLog('OCP\Share', sprintf($message, $itemSourceName, $shareWith), \OCP\Util::ERROR);
throw new \Exception($message_t);
}
}