diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-17 21:31:29 +0400 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-17 21:31:29 +0400 |
commit | 69ee0efc0b355c33ec566cffb36c4b0dc429c338 (patch) | |
tree | 50f96da78b34007f47d6de10bdf47f35704d96a8 /apps/files_sharing | |
parent | 12818093007d5bdce5519b5015e2a0748c98e24d (diff) |
remove the require_once lib base from all (or nearly all) files
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/ajax/getitem.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/ajax/setpermissions.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/ajax/share.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/ajax/unshare.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/ajax/userautocomplete.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/list.php | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_sharing/ajax/getitem.php b/apps/files_sharing/ajax/getitem.php index ba01adffb9a..c838895efbe 100644 --- a/apps/files_sharing/ajax/getitem.php +++ b/apps/files_sharing/ajax/getitem.php @@ -1,7 +1,7 @@ <?php //$RUNTIME_NOAPPS = true; -require_once('../../../lib/base.php'); + OC_JSON::checkAppEnabled('files_sharing'); require_once('../lib_share.php'); diff --git a/apps/files_sharing/ajax/setpermissions.php b/apps/files_sharing/ajax/setpermissions.php index 200202c704c..d46f6f0c7b4 100644 --- a/apps/files_sharing/ajax/setpermissions.php +++ b/apps/files_sharing/ajax/setpermissions.php @@ -1,7 +1,7 @@ <?php //$RUNTIME_NOAPPS = true; -require_once('../../../lib/base.php'); + OC_JSON::checkAppEnabled('files_sharing'); require_once('../lib_share.php'); diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php index 9b10260da5a..cd9166913cb 100644 --- a/apps/files_sharing/ajax/share.php +++ b/apps/files_sharing/ajax/share.php @@ -1,7 +1,7 @@ <?php //$RUNTIME_NOAPPS = true; -require_once('../../../lib/base.php'); + OC_JSON::checkAppEnabled('files_sharing'); require_once('../lib_share.php'); diff --git a/apps/files_sharing/ajax/unshare.php b/apps/files_sharing/ajax/unshare.php index d8a72a00efe..150d6504863 100644 --- a/apps/files_sharing/ajax/unshare.php +++ b/apps/files_sharing/ajax/unshare.php @@ -1,7 +1,7 @@ <?php //$RUNTIME_NOAPPS = true; -require_once('../../../lib/base.php'); + OC_JSON::checkAppEnabled('files_sharing'); require_once('../lib_share.php'); diff --git a/apps/files_sharing/ajax/userautocomplete.php b/apps/files_sharing/ajax/userautocomplete.php index 38b673ee51b..cc22a0cd1a7 100644 --- a/apps/files_sharing/ajax/userautocomplete.php +++ b/apps/files_sharing/ajax/userautocomplete.php @@ -1,7 +1,7 @@ <?php //$RUNTIME_NOAPPS = true; -require_once('../../../lib/base.php'); + OC_JSON::checkLoggedIn(); OC_JSON::checkAppEnabled('files_sharing'); diff --git a/apps/files_sharing/list.php b/apps/files_sharing/list.php index 721620dc922..a9006faf1a9 100644 --- a/apps/files_sharing/list.php +++ b/apps/files_sharing/list.php @@ -20,7 +20,7 @@ * */ -require_once('../../lib/base.php'); + require_once('lib_share.php'); OC_Util::checkLoggedIn(); |