mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #33682 from nextcloud/fix/noid/help-page-unavailable
Fix opening Help page throwing Exception
This commit is contained in:
commit
711a9fd209
2 changed files with 2 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ class HelpController extends Controller {
|
|||
}
|
||||
|
||||
$documentationUrl = $this->urlGenerator->getAbsoluteURL(
|
||||
$this->urlGenerator->linkTo('core', 'doc/' . $mode . '/index.html')
|
||||
$this->urlGenerator->linkTo('', 'core/doc/' . $mode . '/index.html')
|
||||
);
|
||||
|
||||
$urlUserDocs = $this->urlGenerator->linkToRoute('settings.Help.help', ['mode' => 'user']);
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ class URLGenerator implements IURLGenerator {
|
|||
if ($appName !== '') {
|
||||
$app_path = $this->getAppManager()->getAppPath($appName);
|
||||
// Check if the app is in the app folder
|
||||
if ($app_path && file_exists($app_path . '/' . $file)) {
|
||||
if (file_exists($app_path . '/' . $file)) {
|
||||
if (substr($file, -3) === 'php') {
|
||||
$urlLinkTo = \OC::$WEBROOT . '/index.php/apps/' . $appName;
|
||||
if ($frontControllerActive) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue