aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2016-02-02 17:51:34 +0100
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2016-02-02 17:51:34 +0100
commit36ac48779c85ae324d2d702714677e360af5930d (patch)
treef6e78cb3cefe3abf5dcac291938005d75ecb0bff /index.php
parent0cd82ec680e6a5a352781861a63685038fea723a (diff)
parent88669fa033d5b43d4cdad7b95c9af05bf9467d3b (diff)
downloadvolse-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-xindex.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/index.php b/index.php
index 7e9cde9bb..2d8116f96 100755
--- a/index.php
+++ b/index.php
@@ -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);