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');
if($text)
$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) {
$text = load_doc_file('doc/' . $a->argv[1] . '.html');