summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-18 17:42:11 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-18 17:42:11 +0200
commitb44bc9f4b289eda95ec94321c9698f3ce1a700be (patch)
tree1ffbc8fa0e33ad2131f84017fc6b561fba87ea34 /apps
parent45de7ad221f9e505abdabcc5084dd12c80851469 (diff)
downloadnextcloud-server-b44bc9f4b289eda95ec94321c9698f3ce1a700be.tar.gz
nextcloud-server-b44bc9f4b289eda95ec94321c9698f3ce1a700be.zip
remove require once lib base in some more files
Diffstat (limited to 'apps')
-rw-r--r--apps/files/admin.php2
-rw-r--r--apps/files/download.php2
-rw-r--r--apps/files/index.php4
-rw-r--r--apps/files/settings.php2
-rw-r--r--apps/files/webdav.php2
5 files changed, 4 insertions, 8 deletions
diff --git a/apps/files/admin.php b/apps/files/admin.php
index 4ae3ee51236..bdea70506fb 100644
--- a/apps/files/admin.php
+++ b/apps/files/admin.php
@@ -23,7 +23,7 @@
// Init owncloud
-require_once('../lib/base.php');
+
OC_Util::checkAdminUser();
diff --git a/apps/files/download.php b/apps/files/download.php
index d1f5ba486d7..ec4a6e1fc9c 100644
--- a/apps/files/download.php
+++ b/apps/files/download.php
@@ -22,7 +22,7 @@
*/
// Init owncloud
-require_once('../lib/base.php');
+
// Check if we are a user
OC_Util::checkLoggedIn();
diff --git a/apps/files/index.php b/apps/files/index.php
index aea91542db6..46b511d66eb 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -21,10 +21,6 @@
*
*/
-
-// Init owncloud
-require_once('../lib/base.php');
-
// Check if we are a user
OC_Util::checkLoggedIn();
diff --git a/apps/files/settings.php b/apps/files/settings.php
index c47eb130095..41017c064ef 100644
--- a/apps/files/settings.php
+++ b/apps/files/settings.php
@@ -23,7 +23,7 @@
// Init owncloud
-require_once('../lib/base.php');
+
// Check if we are a user
OC_Util::checkLoggedIn();
diff --git a/apps/files/webdav.php b/apps/files/webdav.php
index 25e33024470..3418eba5a6c 100644
--- a/apps/files/webdav.php
+++ b/apps/files/webdav.php
@@ -29,7 +29,7 @@ $RUNTIME_NOSETUPFS = true;
// only need filesystem apps
$RUNTIME_APPTYPES=array('filesystem','authentication');
-require_once('../lib/base.php');
+
// Backends
$authBackend = new OC_Connector_Sabre_Auth();