diff options
author | libasys <sebastian.doell@libasys.de> | 2015-05-19 10:08:47 +0300 |
---|---|---|
committer | libasys <sebastian.doell@libasys.de> | 2015-05-19 10:08:47 +0300 |
commit | 92d82575cc20415f1d77b2dbf64469e8afcff1f5 (patch) | |
tree | 593391006949f20c46b47692e806d3557cbbcd7b /appinfo/app.php | |
parent | 6de054ca7cf8c4173f6d8e957e0dd165af6d2d7d (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.php | 6 |
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)) { |