summaryrefslogtreecommitdiffstats
path: root/apps/external
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-17 19:31:29 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-17 19:31:29 +0200
commit69ee0efc0b355c33ec566cffb36c4b0dc429c338 (patch)
tree50f96da78b34007f47d6de10bdf47f35704d96a8 /apps/external
parent12818093007d5bdce5519b5015e2a0748c98e24d (diff)
downloadnextcloud-server-69ee0efc0b355c33ec566cffb36c4b0dc429c338.tar.gz
nextcloud-server-69ee0efc0b355c33ec566cffb36c4b0dc429c338.zip
remove the require_once lib base from all (or nearly all) files
Diffstat (limited to 'apps/external')
-rw-r--r--apps/external/ajax/setsites.php2
-rw-r--r--apps/external/index.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/external/ajax/setsites.php b/apps/external/ajax/setsites.php
index 0537b7ea581..3223bf68d9b 100644
--- a/apps/external/ajax/setsites.php
+++ b/apps/external/ajax/setsites.php
@@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
-require_once('../../../lib/base.php');
+
OC_Util::checkAdminUser();
$sites = array();
diff --git a/apps/external/index.php b/apps/external/index.php
index 1c20f59eaff..0baa62a94b6 100644
--- a/apps/external/index.php
+++ b/apps/external/index.php
@@ -20,7 +20,7 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
-require_once('../../lib/base.php');
+
require_once('lib/external.php');
OC_Util::checkLoggedIn();