From d197f434757c9c21d813584122329b774487f15e Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 27 Nov 2014 14:36:11 +0100 Subject: Use server container --- lib/private/server.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/private/server.php') diff --git a/lib/private/server.php b/lib/private/server.php index c413ee8bf6d..e28e8362796 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -631,4 +631,13 @@ class Server extends SimpleContainer implements IServerContainer { function getAppManager() { return $this->query('AppManager'); } + + /** + * Get the webroot + * + * @return string + */ + function getWebRoot() { + return \OC::$WEBROOT; + } } -- cgit v1.2.3