mod/help - load Site.md (if it exists) before Home.md. Site.md will typically provide local resources. Site.md can either include the complete contents of Help.md or link to it, as you choose.

This commit is contained in:
friendica 2013-11-21 14:19:31 -08:00
parent 4791b2fd9c
commit 6ddb57e0da

View File

@ -25,9 +25,13 @@ function help_content(&$a) {
$text = '';
if($a->argc > 1) {
if(argc() > 1) {
$text = load_doc_file('doc/' . $a->argv[1] . '.md');
$a->page['title'] = t('Help:') . ' ' . str_replace('-',' ',notags($a->argv[1]));
$a->page['title'] = t('Help:') . ' ' . str_replace('-',' ',notags(argv(1)));
}
if(! $text) {
$text = load_doc_file('doc/Site.md');
$a->page['title'] = t('Help');
}
if(! $text) {
$text = load_doc_file('doc/Home.md');