From 2447aea115ff5a67fb878a5e4a8880bbfcad6788 Mon Sep 17 00:00:00 2001 From: Adphi Date: Sat, 20 Jul 2019 14:02:52 +0200 Subject: [PATCH] Fix core server lib import path --- lib/Controller/OCCApplication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/OCCApplication.php b/lib/Controller/OCCApplication.php index 96ce2c9..928d264 100644 --- a/lib/Controller/OCCApplication.php +++ b/lib/Controller/OCCApplication.php @@ -109,7 +109,7 @@ class OCCApplication { // } try { - require_once __DIR__ . '/../../../../core/register_command.php'; + require_once \OC::$SERVERROOT . '/core/register_command.php'; if ($this->config->getSystemValue('installed', false)) { if (\OCP\Util::needUpgrade()) { throw new NeedsUpdateException();