Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 21:04:20 +0400
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 21:04:20 +0400
commit254b8b95065b4e2f27a8d2620f26bef65269957b (patch)
tree23a0ff8b76397a5271d1aa45a6a07b0e8ed5a2f3 /apps/calendar
parent70cea18cce0fcdb4d8118ff2d7abccc922417a6a (diff)
porting of OC_User to public API complete.
What better thing to do during a long train ride than refactoring ;-)
Diffstat (limited to 'apps/calendar')
-rwxr-xr-x[-rw-r--r--]apps/calendar/ajax/share/changepermission.php2
-rwxr-xr-xapps/calendar/ajax/share/share.php2
-rwxr-xr-xapps/calendar/ajax/share/unshare.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/calendar/ajax/share/changepermission.php b/apps/calendar/ajax/share/changepermission.php
index faf2a13c56b..431ef7964b6 100644..100755
--- a/apps/calendar/ajax/share/changepermission.php
+++ b/apps/calendar/ajax/share/changepermission.php
@@ -28,7 +28,7 @@ switch($sharetype){
OC_JSON::error(array('message'=>'unexspected parameter'));
exit;
}
-if($sharetype == 'user' && !OC_User::userExists($sharewith)){
+if($sharetype == 'user' && !OCP\User::userExists($sharewith)){
OC_JSON::error(array('message'=>'user not found'));
exit;
}
diff --git a/apps/calendar/ajax/share/share.php b/apps/calendar/ajax/share/share.php
index 9f4dc39e524..39d97522338 100755
--- a/apps/calendar/ajax/share/share.php
+++ b/apps/calendar/ajax/share/share.php
@@ -35,7 +35,7 @@ switch($sharetype){
OC_JSON::error(array('message'=>'unexspected parameter'));
exit;
}
-if($sharetype == 'user' && !OC_User::userExists($sharewith)){
+if($sharetype == 'user' && !OCP\User::userExists($sharewith)){
OC_JSON::error(array('message'=>'user not found'));
exit;
}
diff --git a/apps/calendar/ajax/share/unshare.php b/apps/calendar/ajax/share/unshare.php
index 1a93748982c..e5676c72f31 100755
--- a/apps/calendar/ajax/share/unshare.php
+++ b/apps/calendar/ajax/share/unshare.php
@@ -27,7 +27,7 @@ switch($sharetype){
OC_JSON::error(array('message'=>'unexspected parameter'));
exit;
}
-if($sharetype == 'user' && !OC_User::userExists($sharewith)){
+if($sharetype == 'user' && !OCP\User::userExists($sharewith)){
OC_JSON::error(array('message'=>'user not found'));
exit;
}elseif($sharetype == 'group' && !OC_Group::groupExists($sharewith)){