aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Traits/HelpHelperTrait.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Lib/Traits/HelpHelperTrait.php')
-rw-r--r--Zotlabs/Lib/Traits/HelpHelperTrait.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Traits/HelpHelperTrait.php b/Zotlabs/Lib/Traits/HelpHelperTrait.php
index b7711bbd5..9e4fefa4b 100644
--- a/Zotlabs/Lib/Traits/HelpHelperTrait.php
+++ b/Zotlabs/Lib/Traits/HelpHelperTrait.php
@@ -53,10 +53,10 @@ trait HelpHelperTrait {
// Use local variable until we can use trait constants.
$valid_file_ext = ['md', 'bb', 'html'];
- $base_path = "doc/{$lang}/${base_path}";
+ $base_path_with_lang = "doc/{$lang}/${base_path}";
foreach ($valid_file_ext as $ext) {
- $path = "{$base_path}.{$ext}";
+ $path = "{$base_path_with_lang}.{$ext}";
if (file_exists($path)) {
$this->file_name = $path;
$this->file_type = $ext;
@@ -64,5 +64,9 @@ trait HelpHelperTrait {
break;
}
}
+
+ if (empty($this->file_name) && $lang !== 'en') {
+ $this->find_help_file($base_path, 'en');
+ }
}
}