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

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlibasys <sebastian.doell@libasys.de>2015-05-19 10:08:47 +0300
committerlibasys <sebastian.doell@libasys.de>2015-05-19 10:08:47 +0300
commit92d82575cc20415f1d77b2dbf64469e8afcff1f5 (patch)
tree593391006949f20c46b47692e806d3557cbbcd7b /appinfo/app.php
parent6de054ca7cf8c4173f6d8e957e0dd165af6d2d7d (diff)
Smarter way
like https://github.com/owncloud/calendar/blob/master/appinfo/app.php
Diffstat (limited to 'appinfo/app.php')
-rw-r--r--appinfo/app.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index 0d430a5..28cfd0b 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -2,10 +2,8 @@
// only load text editor if the user is logged in
if (\OCP\User::isLoggedIn()) {
- $app = new \OCP\AppFramework\App('files_texteditor');
- $c = $app->getContainer();
- $request = $c->query('Request');
-
+ $request = \OC::$server->getRequest();
+
if (isset($request->server['REQUEST_URI'])) {
$url = $request->server['REQUEST_URI'];
if (preg_match('%index.php/apps/files(/.*)?%', $url) || preg_match('%index.php/s/(/.*)?%', $url)) {