Skip to content
Snippets Groups Projects
Unverified Commit 5424d6a4 authored by Lukas Reschke's avatar Lukas Reschke Committed by Roeland Jago Douma
Browse files

Add proper PHPDoc

parent b4d4db0e
No related branches found
No related tags found
No related merge requests found
......@@ -325,7 +325,9 @@ class OC_Template extends \OC\Template\Base {
/**
* print error page using Exception details
* @param Exception | Throwable $exception
* @param Exception|Throwable $exception
* @param bool $fetchPage
* @return bool|string
*/
public static function printExceptionErrorPage($exception, $fetchPage = false) {
try {
......
......@@ -136,7 +136,7 @@ interface ILogger {
* ]);
* </code>
*
* @param \Exception | \Throwable $exception
* @param \Exception|\Throwable $exception
* @param array $context
* @return void
* @since 8.2.0
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment