mod help: only abort requests without topic if we have not got a search request

This commit is contained in:
Mario
2024-09-24 09:24:56 +00:00
parent 0e1bf2cef0
commit 2bc088e555

View File

@@ -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 .= '</div>';
$o .= '<div class="section-content-wrapper">';
require_once('include/help.php');
$r = search_doc_files($_REQUEST['search']);
if($r) {
$o .= '<ul class="help-searchlist">';