mirror of
https://github.com/Karaka-Management/oms-Help.git
synced 2026-01-30 21:28:42 +00:00
Fix Path bugs after move
This commit is contained in:
parent
2b4e098ec2
commit
0cb2d7b0b3
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user