aboutsummaryrefslogtreecommitdiffstats
path: root/mod/help.php
diff options
context:
space:
mode:
authorRedSwede <redswede@riseup.net>2015-01-19 00:45:32 +0100
committerRedSwede <redswede@riseup.net>2015-01-19 00:45:32 +0100
commit08038eafb4e1e1374356727fa1f21dab244185cb (patch)
tree291d9fce556898b60c04faa24d35a2cfbb122787 /mod/help.php
parentcfd983b7509d55a79621b2895205f1acd74dc564 (diff)
parent5d30565c665341e6a6a805684cee4d45c1d2fafe (diff)
downloadvolse-hubzilla-08038eafb4e1e1374356727fa1f21dab244185cb.tar.gz
volse-hubzilla-08038eafb4e1e1374356727fa1f21dab244185cb.tar.bz2
volse-hubzilla-08038eafb4e1e1374356727fa1f21dab244185cb.zip
Merge branch 'master' of git://github.com/friendica/red into dev_redswede
Diffstat (limited to 'mod/help.php')
-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) {