summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-12 14:48:56 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-12 14:49:41 -0400
commit64ef1e21819979d7fdc406d2628bc175b16fe554 (patch)
treed0f989440be3e39b6d286ce4992d2213fcb54d90 /core
parentfb493c45dd4ecadeaa5b1b112a156054318af0a2 (diff)
downloadnextcloud-server-64ef1e21819979d7fdc406d2628bc175b16fe554.tar.gz
nextcloud-server-64ef1e21819979d7fdc406d2628bc175b16fe554.zip
Change name of share function to shareItem, silly PHP 5.3.1 thinking it is a constructor...
Diffstat (limited to 'core')
-rw-r--r--core/ajax/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 625199aa0b6..3eadff431ca 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -26,7 +26,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['item']
case 'share':
if (isset($_POST['shareType']) && isset($_POST['shareWith']) && isset($_POST['permissions'])) {
try {
- OCP\Share::share($_POST['itemType'], $_POST['item'], $_POST['shareType'], $_POST['shareWith'], $_POST['permissions']);
+ OCP\Share::shareItem($_POST['itemType'], $_POST['item'], $_POST['shareType'], $_POST['shareWith'], $_POST['permissions']);
// TODO May need to return private link
OC_JSON::success();
} catch (Exception $exception) {