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

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-14 16:08:55 +0300
committerLukas Reschke <lukas@statuscode.ch>2016-11-14 16:08:55 +0300
commitcab55e0dc44c82be3c50ae2971924e1da2bc486c (patch)
treeb811439df11fd946ade2421a3c7ecc34ca698702 /appinfo
parent4bacf214626eb14d11229ce17d8a4d6ad04dba52 (diff)
Don't run on OCC
Fixes https://github.com/nextcloud/user_saml/issues/46 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index e59d594e..f6f7c258 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -21,6 +21,12 @@
require_once __DIR__ . '/../3rdparty/vendor/autoload.php';
+// If we run in CLI mode do not setup the app as it can fail the OCC execution
+// since the URLGenerator isn't accessible.
+if(OC::$CLI) {
+ return;
+}
+
$urlGenerator = \OC::$server->getURLGenerator();
$config = \OC::$server->getConfig();
$request = \OC::$server->getRequest();