aboutsummaryrefslogtreecommitdiffstats
path: root/mod/help.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-08-17 17:35:37 +0200
committerfabrixxm <fabrix.xm@gmail.com>2011-08-17 17:35:37 +0200
commitbdf42473a0341f291cd256323d122aa80bb0cb0b (patch)
tree922a5ba24a34d7ea89673019e82f68436edb7091 /mod/help.php
parent6c423feed2d8bc5bd36d2a1cbac073915e523749 (diff)
parentdb03b1ab173d61b1ee75271dac1e48f3475ad42c (diff)
downloadvolse-hubzilla-bdf42473a0341f291cd256323d122aa80bb0cb0b.tar.gz
volse-hubzilla-bdf42473a0341f291cd256323d122aa80bb0cb0b.tar.bz2
volse-hubzilla-bdf42473a0341f291cd256323d122aa80bb0cb0b.zip
Merge remote-tracking branch 'friendika/master' into newui
Diffstat (limited to 'mod/help.php')
-rw-r--r--mod/help.php11
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