Add proper PHPDoc
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
b4d4db0e39
commit
5424d6a40d
|
@ -325,7 +325,9 @@ class OC_Template extends \OC\Template\Base {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* print error page using Exception details
|
* 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) {
|
public static function printExceptionErrorPage($exception, $fetchPage = false) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -136,7 +136,7 @@ interface ILogger {
|
||||||
* ]);
|
* ]);
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param \Exception | \Throwable $exception
|
* @param \Exception|\Throwable $exception
|
||||||
* @param array $context
|
* @param array $context
|
||||||
* @return void
|
* @return void
|
||||||
* @since 8.2.0
|
* @since 8.2.0
|
||||||
|
|
|
@ -51,8 +51,8 @@ try {
|
||||||
$pathInfo = trim($pathInfo, '/');
|
$pathInfo = trim($pathInfo, '/');
|
||||||
list($service) = explode('/', $pathInfo);
|
list($service) = explode('/', $pathInfo);
|
||||||
}
|
}
|
||||||
$file = OCP\Config::getAppValue('core', 'public_' . strip_tags($service));
|
$file = \OC::$server->getConfig()->getAppValue('core', 'public_' . strip_tags($service));
|
||||||
if (is_null($file)) {
|
if ($file === null) {
|
||||||
header('HTTP/1.0 404 Not Found');
|
header('HTTP/1.0 404 Not Found');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue