diff options
author | redmatrix <git@macgirvin.com> | 2016-01-31 15:55:27 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-01-31 15:55:27 -0800 |
commit | a341c889b751055e90eba9b7a14da5b7cd0e8032 (patch) | |
tree | c42867ffbcac204c664522cb1559b7169c797cc1 /index.php | |
parent | 1f87fef9684a29da91fcb41a5d1d3bd4fb9a4619 (diff) | |
download | volse-hubzilla-a341c889b751055e90eba9b7a14da5b7cd0e8032.tar.gz volse-hubzilla-a341c889b751055e90eba9b7a14da5b7cd0e8032.tar.bz2 volse-hubzilla-a341c889b751055e90eba9b7a14da5b7cd0e8032.zip |
add oembed provider for photos
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); |