From c79a529edda3992bffc9e7dd1c7949f42c3b8f57 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Mon, 28 May 2012 13:57:45 +0200 Subject: [PATCH] remove not needed includes --- apps/files_sharing/ajax/getitem.php | 1 - apps/files_sharing/ajax/getstatuses.php | 3 +-- apps/files_sharing/ajax/setpermissions.php | 1 - apps/files_sharing/ajax/share.php | 1 - apps/files_sharing/ajax/unshare.php | 1 - apps/media/ajax/api.php | 4 +--- apps/media/index.php | 3 --- apps/user_ldap/appinfo/update.php | 5 +---- 8 files changed, 3 insertions(+), 16 deletions(-) diff --git a/apps/files_sharing/ajax/getitem.php b/apps/files_sharing/ajax/getitem.php index 36ac372cad..94f0890d70 100644 --- a/apps/files_sharing/ajax/getitem.php +++ b/apps/files_sharing/ajax/getitem.php @@ -1,5 +1,4 @@ $items)); -?> \ No newline at end of file +?> diff --git a/apps/files_sharing/ajax/setpermissions.php b/apps/files_sharing/ajax/setpermissions.php index 2f4c5da978..4d19cd40f2 100644 --- a/apps/files_sharing/ajax/setpermissions.php +++ b/apps/files_sharing/ajax/setpermissions.php @@ -1,5 +1,4 @@ \ No newline at end of file +?> diff --git a/apps/media/index.php b/apps/media/index.php index 906d7bacb6..fb51aa0b17 100644 --- a/apps/media/index.php +++ b/apps/media/index.php @@ -28,9 +28,6 @@ OCP\User::checkLoggedIn(); OCP\App::checkAppEnabled('media'); -require_once(OC::$APPSROOT . '/apps/media/lib_collection.php'); -require_once(OC::$APPSROOT . '/apps/media/lib_scanner.php'); - OCP\Util::addscript('media','player'); OCP\Util::addscript('media','music'); OCP\Util::addscript('media','playlist'); diff --git a/apps/user_ldap/appinfo/update.php b/apps/user_ldap/appinfo/update.php index b3f7a397db..dc437ce21c 100644 --- a/apps/user_ldap/appinfo/update.php +++ b/apps/user_ldap/appinfo/update.php @@ -16,9 +16,6 @@ $state = OCP\Config::getSystemValue('ldapIgnoreNamingRules', 'doCheck'); if($state == 'doCheck'){ $sqlCleanMap = 'DELETE FROM *PREFIX*ldap_user_mapping'; - require_once(OC::$APPSROOT.'/apps/user_ldap/lib_ldap.php'); - require_once(OC::$APPSROOT.'/apps/user_ldap/user_ldap.php'); - OCP\Config::setSystemValue('ldapIgnoreNamingRules', true); $LDAP_USER = new OC_USER_LDAP(); $users_old = $LDAP_USER->getUsers(); @@ -33,4 +30,4 @@ if($state == 'doCheck'){ //we don't need to check Groups, because they were not supported in 3' OCP\Config::setSystemValue('ldapIgnoreNamingRules', true); } -} \ No newline at end of file +}