diff options
author | mrjive <mrjive@mrjive.it> | 2016-01-14 09:30:50 +0100 |
---|---|---|
committer | mrjive <mrjive@mrjive.it> | 2016-01-14 09:30:50 +0100 |
commit | 5c937c5642e87750b55e15c9d9c1b863e5d5cfc1 (patch) | |
tree | 5ef2c09452b4d511f895d0fa3164fb614307f8c4 /index.php | |
parent | 3206a46a9297dcbdc56c25512767dfb5bf66837b (diff) | |
parent | e500a08f152d641f60c7146c6a290042bdd37a73 (diff) | |
download | volse-hubzilla-5c937c5642e87750b55e15c9d9c1b863e5d5cfc1.tar.gz volse-hubzilla-5c937c5642e87750b55e15c9d9c1b863e5d5cfc1.tar.bz2 volse-hubzilla-5c937c5642e87750b55e15c9d9c1b863e5d5cfc1.zip |
Merge pull request #15 from redmatrix/master
updating from original codebase
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']; } |