aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2015-01-19 10:19:08 +1100
committerRedMatrix <info@friendica.com>2015-01-19 10:19:08 +1100
commit39dad87adc9ea4449c5534e5b3a0fbcc77159a5c (patch)
treee897c8360dcf48f7393e440e4c9c6449e9061100 /mod
parentaf75120fd0284878a4ecf292ca8cb865f7516e52 (diff)
parent1075bb234f71ff13700a41ac7472c1f8c69ebaf6 (diff)
downloadvolse-hubzilla-39dad87adc9ea4449c5534e5b3a0fbcc77159a5c.tar.gz
volse-hubzilla-39dad87adc9ea4449c5534e5b3a0fbcc77159a5c.tar.bz2
volse-hubzilla-39dad87adc9ea4449c5534e5b3a0fbcc77159a5c.zip
Merge pull request #862 from pafcu/help
Add some database documentation + mod/help.php bugfix
Diffstat (limited to 'mod')
-rw-r--r--mod/help.php25
1 files changed, 13 insertions, 12 deletions
diff --git a/mod/help.php b/mod/help.php
index a3dafcc9b..5cdeda58f 100644
--- a/mod/help.php
+++ b/mod/help.php
@@ -39,18 +39,19 @@ function help_content(&$a) {
if(argc() > 1) {
$text = load_doc_file('doc/' . $a->argv[1] . '.md');
$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:') . ' ' . 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:') . ' ' . 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:') . ' ' . 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:') . ' ' . ucwords(str_replace('-',' ',notags(argv(1))));
+ }
}
if(! $text) {