From 8284901f9eda97457da1d4d5a74a0e24ee9249b3 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Mon, 24 Feb 2014 05:11:56 +0000 Subject: Make bbcode the default doco ready for the next commit --- mod/help.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/help.php') diff --git a/mod/help.php b/mod/help.php index a4ccd1cfe..bbfeb9a6c 100644 --- a/mod/help.php +++ b/mod/help.php @@ -60,7 +60,8 @@ function help_content(&$a) { $a->page['title'] = t('Help'); } if(! $text) { - $text = load_doc_file('doc/Home.md'); + $doctype = 'bbcode'; + $text = load_doc_file('doc/main.bb'); $a->page['title'] = t('Help'); } -- cgit v1.2.3 From 5cf0e74501f4e72b29f8f486e8d6aac769d0ed24 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Thu, 27 Feb 2014 17:50:36 +0000 Subject: Capitalise $a->page['title'] in doco pages. --- mod/help.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/help.php') diff --git a/mod/help.php b/mod/help.php index bbfeb9a6c..aa0ee8ae6 100644 --- a/mod/help.php +++ b/mod/help.php @@ -40,19 +40,19 @@ function help_content(&$a) { if(argc() > 1) { $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) { $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:') . ' ' . ucwords(str_replace('_',' ',notags(argv(1)))); } if(! $text) { $text = load_doc_file('doc/' . $a->argv[1] . '.html'); if($text) $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) { -- cgit v1.2.3