Capitalise $a->page['title'] in doco pages.
This commit is contained in:
parent
05882df43a
commit
5cf0e74501
@ -40,19 +40,19 @@ function help_content(&$a) {
|
|||||||
|
|
||||||
if(argc() > 1) {
|
if(argc() > 1) {
|
||||||
$text = load_doc_file('doc/' . $a->argv[1] . '.md');
|
$text = load_doc_file('doc/' . $a->argv[1] . '.md');
|
||||||
$a->page['title'] = t('Help:') . ' ' . str_replace('-',' ',notags(argv(1)));
|
$a->page['title'] = t('Help:') . ' ' . ucwords(str_replace('-',' ',notags(argv(1))));
|
||||||
}
|
}
|
||||||
if(! $text) {
|
if(! $text) {
|
||||||
$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:') . ' ' . ucwords(str_replace('_',' ',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');
|
||||||
if($text)
|
if($text)
|
||||||
$doctype = 'html';
|
$doctype = 'html';
|
||||||
$a->page['title'] = t('Help:') . ' ' . str_replace('-',' ',notags(argv(1)));
|
$a->page['title'] = t('Help:') . ' ' . ucwords(str_replace('-',' ',notags(argv(1))));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(! $text) {
|
if(! $text) {
|
||||||
|
Reference in New Issue
Block a user