mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
mod help: only abort requests without topic if we have not got a search request
This commit is contained in:
@@ -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">';
|
||||
|
||||
Reference in New Issue
Block a user