aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Help.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Help.php b/Zotlabs/Module/Help.php
index 5d52440a5..fd5cacee6 100644
--- a/Zotlabs/Module/Help.php
+++ b/Zotlabs/Module/Help.php
@@ -210,7 +210,8 @@ class Help extends \Zotlabs\Web\Controller {
$content = preg_replace_callback(
"/#include (.*?)\;/ism",
function ($matches) {
- $sub_file_type = array_pop(explode('.', $matches[1]));
+ $parts = explode('.', $matches[1]);
+ $sub_file_type = array_pop($parts);
$included_content = $this->render_help_file($matches[1], $sub_file_type);
return str_replace($matches[0], $included_content, $matches[0]);
},