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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-07-19 16:48:58 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-01 09:20:15 +0300
commit5424d6a40d13f922a19e2b2b0e484a56f4dbe7f3 (patch)
treedceac8d538c25e63d838a1f10f5eaa257fb3bb39 /public.php
parentb4d4db0e39d3e09fe0cf53241c72d5d6fc180101 (diff)
Add proper PHPDoc
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'public.php')
-rw-r--r--public.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/public.php b/public.php
index a9365d6db63..efa59267125 100644
--- a/public.php
+++ b/public.php
@@ -51,8 +51,8 @@ try {
$pathInfo = trim($pathInfo, '/');
list($service) = explode('/', $pathInfo);
}
- $file = OCP\Config::getAppValue('core', 'public_' . strip_tags($service));
- if (is_null($file)) {
+ $file = \OC::$server->getConfig()->getAppValue('core', 'public_' . strip_tags($service));
+ if ($file === null) {
header('HTTP/1.0 404 Not Found');
exit;
}