aboutsummaryrefslogtreecommitdiffstats
path: root/mod/help.php
diff options
context:
space:
mode:
authorChristian Vogeley <christian.vogeley@hotmail.de>2014-03-09 04:15:11 +0100
committerChristian Vogeley <christian.vogeley@hotmail.de>2014-03-09 04:15:11 +0100
commit76ab9403af3b562531a7eb0831e5a7ecc9aedb38 (patch)
treec4d74f0cc8aac0fcd5a52520170a64c8d4b01395 /mod/help.php
parente8e980c8175be6dae7d642d9707493c465b7137b (diff)
parent80e381176e1e301782bc56cbb7c6037825eddf2d (diff)
downloadvolse-hubzilla-76ab9403af3b562531a7eb0831e5a7ecc9aedb38.tar.gz
volse-hubzilla-76ab9403af3b562531a7eb0831e5a7ecc9aedb38.tar.bz2
volse-hubzilla-76ab9403af3b562531a7eb0831e5a7ecc9aedb38.zip
merge
Diffstat (limited to 'mod/help.php')
-rw-r--r--mod/help.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/mod/help.php b/mod/help.php
index a4ccd1cfe..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) {
@@ -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');
}