Fix Path bugs after move

This commit is contained in:
Dennis Eichhorn 2018-09-21 23:11:57 +02:00
parent 2b4e098ec2
commit 0cb2d7b0b3

View File

@ -68,8 +68,11 @@ class BackendController extends Controller
$view = new View($this->app, $request, $response);
$path = $this->getHelpGeneralPath($request);
$content = Markdown::parse(\file_get_contents($path));
$navigation = Markdown::parse(\file_get_contents(__DIR__ . '/../../../Documentation/SUMMARY.md'));
$toParse = \file_get_contents($path);
$summary = \file_get_contents(__DIR__ . '/../../../Documentation/SUMMARY.md');
$content = Markdown::parse($toParse === false ? '' : $toParse);
$navigation = Markdown::parse($summary === false ? '' : $summary);
$view->setTemplate('/Modules/Help/Theme/Backend/help-general');
$view->setData('content', $content);