add 'quiet' paramter to redir and dfrn_poll to allow calls that don't produce a Welcome info
This commit is contained in:
parent
9dbe7efce5
commit
cc38986c20
2 changed files with 8 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
|||
function redir_init(&$a) {
|
||||
|
||||
$url = ((x($_GET,'url')) ? $_GET['url'] : '');
|
||||
$quiet = ((x($_GET,'quiet')) ? '&quiet=1' : '');
|
||||
|
||||
// traditional DFRN
|
||||
|
||||
|
@ -43,7 +44,7 @@ function redir_init(&$a) {
|
|||
logger('mod_redir: ' . $r[0]['name'] . ' ' . $sec, LOGGER_DEBUG);
|
||||
$dest = (($url) ? '&destination_url=' . $url : '');
|
||||
goaway ($r[0]['poll'] . '?dfrn_id=' . $dfrn_id
|
||||
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec . $dest );
|
||||
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec . $dest . $quiet );
|
||||
}
|
||||
|
||||
if(local_user())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue