1
0
Fork 0

Normalize App parameter declaration (doc-include folders, boot)

This commit is contained in:
Hypolite Petovan 2017-01-09 23:09:01 +11:00
commit 87eb3d5ef2
20 changed files with 142 additions and 142 deletions

View file

@ -1,6 +1,6 @@
<?php
function auto_redir(&$a, $contact_nick) {
function auto_redir(App $a, $contact_nick) {
// prevent looping
@ -70,7 +70,7 @@ function auto_redir(&$a, $contact_nick) {
if(strlen($dfrn_id) < 3)
return;
$sec = random_string();
q("INSERT INTO `profile_check` ( `uid`, `cid`, `dfrn_id`, `sec`, `expire`)
@ -84,9 +84,9 @@ function auto_redir(&$a, $contact_nick) {
$url = curPageURL();
logger('auto_redir: ' . $r[0]['name'] . ' ' . $sec, LOGGER_DEBUG);
logger('auto_redir: ' . $r[0]['name'] . ' ' . $sec, LOGGER_DEBUG);
$dest = (($url) ? '&destination_url=' . $url : '');
goaway ($r[0]['poll'] . '?dfrn_id=' . $dfrn_id
goaway ($r[0]['poll'] . '?dfrn_id=' . $dfrn_id
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec . $dest );
}