diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-01-14 18:14:30 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-01-14 18:14:30 +0100 |
commit | 72353bf0446901f1711cba7a2e50dbce9bd06227 (patch) | |
tree | 6b73f79bf7386e69e4941ff5a8b4c165830b1652 /index.php | |
parent | 42433c0b4442f1a6b451324fe7f765b1b4c354b8 (diff) | |
parent | 9f9fdc1434b7283171f8d843f225228cdb322115 (diff) | |
download | volse-hubzilla-72353bf0446901f1711cba7a2e50dbce9bd06227.tar.gz volse-hubzilla-72353bf0446901f1711cba7a2e50dbce9bd06227.tar.bz2 volse-hubzilla-72353bf0446901f1711cba7a2e50dbce9bd06227.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -336,11 +336,13 @@ if($a->module_loaded) { } if((! $a->error) && (function_exists($a->module . '_content'))) { - $arr = array('content' => $a->page['content']); + $arr = array('content' => $a->page['content'], 'replace' => false); call_hooks($a->module . '_mod_content', $arr); $a->page['content'] = $arr['content']; - $func = $a->module . '_content'; - $arr = array('content' => $func($a)); + if(! $arr['replace']) { + $func = $a->module . '_content'; + $arr = array('content' => $func($a)); + } call_hooks($a->module . '_mod_aftercontent', $arr); $a->page['content'] .= $arr['content']; } |