Normalize App parameter declaration (mod folder, 3 out of 3)

This commit is contained in:
Hypolite Petovan 2017-01-09 23:14:55 +11:00
commit a7ce601580
41 changed files with 78 additions and 78 deletions

View file

@ -1,6 +1,6 @@
<?php
function redir_init(App &$a) {
function redir_init(App $a) {
$url = ((x($_GET,'url')) ? $_GET['url'] : '');
$quiet = ((x($_GET,'quiet')) ? '&quiet=1' : '');
@ -57,9 +57,9 @@ function redir_init(App &$a) {
intval(time() + 45)
);
logger('mod_redir: ' . $r[0]['name'] . ' ' . $sec, LOGGER_DEBUG);
logger('mod_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 . $quiet );
}