From 2bc088e55581bdbf9ec45f539005c37fb23d5d61 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 24 Sep 2024 09:24:56 +0000 Subject: mod help: only abort requests without topic if we have not got a search request --- Zotlabs/Module/Help.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Zotlabs/Module/Help.php b/Zotlabs/Module/Help.php index 851776591..cacc81607 100644 --- a/Zotlabs/Module/Help.php +++ b/Zotlabs/Module/Help.php @@ -29,7 +29,7 @@ class Help extends \Zotlabs\Web\Controller { public function init() { $this->determine_help_language(); - if (argc() === 1) { + if (empty($_REQUEST['search']) && argc() === 1) { goaway("/help/{$this->lang['language']}/about/about"); killme(); } @@ -62,6 +62,7 @@ class Help extends \Zotlabs\Web\Controller { $o .= ''; $o .= '
'; + require_once('include/help.php'); $r = search_doc_files($_REQUEST['search']); if($r) { $o .= '