change page title for bbcode help files

This commit is contained in:
zottel 2014-02-27 18:50:14 +01:00
parent 05882df43a
commit f8b3f032a9

View File

@ -46,7 +46,7 @@ function help_content(&$a) {
$text = load_doc_file('doc/' . $a->argv[1] . '.bb'); $text = load_doc_file('doc/' . $a->argv[1] . '.bb');
if($text) if($text)
$doctype = 'bbcode'; $doctype = 'bbcode';
$a->page['title'] = t('Help:') . ' ' . str_replace('-',' ',notags(argv(1))); $a->page['title'] = t('Help:') . ' ' . str_replace('_',' ',ucfirst(notags(argv(1))));
} }
if(! $text) { if(! $text) {
$text = load_doc_file('doc/' . $a->argv[1] . '.html'); $text = load_doc_file('doc/' . $a->argv[1] . '.html');