From b301301a545a83c3851d2b9cffb90e91bae6f01d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 5 Oct 2019 21:08:38 +0200 Subject: [PATCH] move introduction to lang folder --- Controller/BackendController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 1438c97..d865b23 100644 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -174,13 +174,14 @@ final class BackendController extends Controller private function getHelpModulePath(RequestAbstract $request) : string { if ($request->getData('page') === 'table-of-contencts' || $request->getData('page') === null) { - $path = \realpath(__DIR__ . '/../../' . $request->getData('id') . '/Docs/introduction.md'); + $page = 'introduction'; } else { - $path = \realpath(__DIR__ . '/../../' . $request->getData('id') . '/Docs/Help/en/' . $request->getData('page') . '.md'); + $page = $request->getData('page'); } + $path = \realpath(__DIR__ . '/../../' . $request->getData('id') . '/Docs/Help/en/' . $page . '.md'); if ($path === false) { - $path = \realpath(__DIR__ . '/../../' . $request->getData('id') . '/Docs/introduction.md'); + $path = \realpath(__DIR__ . '/../../' . $request->getData('id') . '/Docs/Help/en/introduction.md'); } return $path === false ? '' : $path;