diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 18:50:31 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 18:50:31 +0200 |
commit | 70cea18cce0fcdb4d8118ff2d7abccc922417a6a (patch) | |
tree | 7f8c476cb75b38fea3ed4ad555f00885f6da2670 /apps/files_sharing/ajax | |
parent | dc7cdda5ccc7d40bf9865e1af5a7846782ec700b (diff) | |
download | nextcloud-server-70cea18cce0fcdb4d8118ff2d7abccc922417a6a.tar.gz nextcloud-server-70cea18cce0fcdb4d8118ff2d7abccc922417a6a.zip |
ported getUser
Diffstat (limited to 'apps/files_sharing/ajax')
-rwxr-xr-x[-rw-r--r--] | apps/files_sharing/ajax/email.php | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | apps/files_sharing/ajax/getitem.php | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | apps/files_sharing/ajax/setpermissions.php | 2 | ||||
-rwxr-xr-x | apps/files_sharing/ajax/share.php | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | apps/files_sharing/ajax/unshare.php | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | apps/files_sharing/ajax/userautocomplete.php | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_sharing/ajax/email.php b/apps/files_sharing/ajax/email.php index 145026bbcd1..c0835f4946e 100644..100755 --- a/apps/files_sharing/ajax/email.php +++ b/apps/files_sharing/ajax/email.php @@ -1,7 +1,7 @@ <?php OC_JSON::checkLoggedIn(); OC_JSON::checkAppEnabled('files_sharing'); -$user = OC_User::getUser(); +$user = OCP\USER::getUser(); // TODO translations $subject = $user + ' ' + 'shared a file with you'; $link = $_POST['link'] + '&f=' + $_POST['f']; diff --git a/apps/files_sharing/ajax/getitem.php b/apps/files_sharing/ajax/getitem.php index 6f8d5247580..b15a81e6086 100644..100755 --- a/apps/files_sharing/ajax/getitem.php +++ b/apps/files_sharing/ajax/getitem.php @@ -5,7 +5,7 @@ OC_JSON::checkAppEnabled('files_sharing'); require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php'); -$userDirectory = "/".OC_User::getUser()."/files"; +$userDirectory = "/".OCP\USER::getUser()."/files"; $source = $userDirectory.$_GET['source']; $path = $source; $users = array(); diff --git a/apps/files_sharing/ajax/setpermissions.php b/apps/files_sharing/ajax/setpermissions.php index 60302d034f7..fc907bd7517 100644..100755 --- a/apps/files_sharing/ajax/setpermissions.php +++ b/apps/files_sharing/ajax/setpermissions.php @@ -5,7 +5,7 @@ OC_JSON::checkAppEnabled('files_sharing'); require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php'); -$source = "/".OC_User::getUser()."/files".$_GET['source']; +$source = "/".OCP\USER::getUser()."/files".$_GET['source']; $uid_shared_with = $_GET['uid_shared_with']; $permissions = $_GET['permissions']; OC_Share::setPermissions($source, $uid_shared_with, $permissions); diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php index c704f653c11..fe1c9e07984 100755 --- a/apps/files_sharing/ajax/share.php +++ b/apps/files_sharing/ajax/share.php @@ -5,7 +5,7 @@ OC_JSON::checkAppEnabled('files_sharing'); require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php'); -$userDirectory = "/".OC_User::getUser()."/files"; +$userDirectory = "/".OCP\USER::getUser()."/files"; $sources = explode(";", $_POST['sources']); $uid_shared_with = $_POST['uid_shared_with']; $permissions = $_POST['permissions']; diff --git a/apps/files_sharing/ajax/unshare.php b/apps/files_sharing/ajax/unshare.php index 7e99b5fe374..061d31e2a98 100644..100755 --- a/apps/files_sharing/ajax/unshare.php +++ b/apps/files_sharing/ajax/unshare.php @@ -5,7 +5,7 @@ OC_JSON::checkAppEnabled('files_sharing'); require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php'); -$source = "/".OC_User::getUser()."/files".$_GET['source']; +$source = "/".OCP\USER::getUser()."/files".$_GET['source']; $uid_shared_with = $_GET['uid_shared_with']; OC_Share::unshare($source, $uid_shared_with); diff --git a/apps/files_sharing/ajax/userautocomplete.php b/apps/files_sharing/ajax/userautocomplete.php index cc22a0cd1a7..83fdc3bdf4d 100644..100755 --- a/apps/files_sharing/ajax/userautocomplete.php +++ b/apps/files_sharing/ajax/userautocomplete.php @@ -8,7 +8,7 @@ OC_JSON::checkAppEnabled('files_sharing'); $users = array(); $groups = array(); -$self = OC_User::getUser(); +$self = OCP\USER::getUser(); $userGroups = OC_Group::getUserGroups($self); $users[] = "<optgroup label='Users'>"; $groups[] = "<optgroup label='Groups'>"; |