diff options
author | Friendika <info@friendika.com> | 2011-08-15 20:16:00 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-15 20:16:00 -0700 |
commit | 37a9a5ea62f817f5e863f45f3967ee74082d6acc (patch) | |
tree | 778f80f57359c5347bce24310393866ead7375b0 /mod/help.php | |
parent | 9634bb514f3c431027a51baa39647681db598987 (diff) | |
download | volse-hubzilla-37a9a5ea62f817f5e863f45f3967ee74082d6acc.tar.gz volse-hubzilla-37a9a5ea62f817f5e863f45f3967ee74082d6acc.tar.bz2 volse-hubzilla-37a9a5ea62f817f5e863f45f3967ee74082d6acc.zip |
stupid browsers not honouring meta base
Diffstat (limited to 'mod/help.php')
-rw-r--r-- | mod/help.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/help.php b/mod/help.php index 561f5381f..495b4ccc2 100644 --- a/mod/help.php +++ b/mod/help.php @@ -9,7 +9,9 @@ function load_doc_file($s) { $d = dirname($s); if(file_exists("$d/$lang/$b")) return file_get_contents("$d/$lang/$b"); - return file_get_contents($s); + if(file_exists($s)) + return file_get_contents($s); + return ''; }} @@ -31,7 +33,12 @@ function help_content(&$a) { $a->page['title'] = t('Help'); } - + if(! strlen($text)) { + header($_SERVER["SERVER_PROTOCOL"] . ' 404 ' . t('Not Found')); + notice( t('Page not found.' ) . EOL); + return; + } + return Markdown($text); }
\ No newline at end of file |