diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-02-02 17:51:34 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-02-02 17:51:34 +0100 |
commit | 36ac48779c85ae324d2d702714677e360af5930d (patch) | |
tree | f6e78cb3cefe3abf5dcac291938005d75ecb0bff /index.php | |
parent | 0cd82ec680e6a5a352781861a63685038fea723a (diff) | |
parent | 88669fa033d5b43d4cdad7b95c9af05bf9467d3b (diff) | |
download | volse-hubzilla-36ac48779c85ae324d2d702714677e360af5930d.tar.gz volse-hubzilla-36ac48779c85ae324d2d702714677e360af5930d.tar.bz2 volse-hubzilla-36ac48779c85ae324d2d702714677e360af5930d.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -289,9 +289,12 @@ if($a->module_loaded) { */ if(function_exists($a->module . '_init')) { - call_hooks($a->module . '_mod_init', $placeholder); - $func = $a->module . '_init'; - $func($a); + $arr = array('init' => true, 'replace' => false); + call_hooks($a->module . '_mod_init', $arr); + if(! $arr['replace']) { + $func = $a->module . '_init'; + $func($a); + } } /** @@ -333,7 +336,7 @@ if($a->module_loaded) { if(($_SERVER['REQUEST_METHOD'] === 'POST') && (! $a->error) && (function_exists($a->module . '_post')) - && (! x($_POST, 'auth-params'))) { + && (! x($_POST, 'auth-params'))) { call_hooks($a->module . '_mod_post', $_POST); $func = $a->module . '_post'; $func($a); |