aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-09-24 09:24:56 +0000
committerMario <mario@mariovavti.com>2024-09-24 09:24:56 +0000
commit2bc088e55581bdbf9ec45f539005c37fb23d5d61 (patch)
treef59da64fdf35ea9bf0a3e38a89533c3b98083860
parent0e1bf2cef0635222076c8755cd19b21b8163d343 (diff)
downloadvolse-hubzilla-2bc088e55581bdbf9ec45f539005c37fb23d5d61.tar.gz
volse-hubzilla-2bc088e55581bdbf9ec45f539005c37fb23d5d61.tar.bz2
volse-hubzilla-2bc088e55581bdbf9ec45f539005c37fb23d5d61.zip
mod help: only abort requests without topic if we have not got a search request
-rw-r--r--Zotlabs/Module/Help.php3
1 files changed, 2 insertions, 1 deletions
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 .= '</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">';