diff --git a/mod/cal.php b/mod/cal.php index 51a66613ee..dece5ac188 100644 --- a/mod/cal.php +++ b/mod/cal.php @@ -1,5 +1,4 @@ argc > 1) { - auto_redir($a, $a->argv[1]); + DFRN::autoRedir($a, $a->argv[1]); } if ((Config::get('system', 'block_public')) && (!local_user()) && (!remote_user())) { diff --git a/mod/photos.php b/mod/photos.php index ab0ad75013..bc87347986 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -13,19 +13,19 @@ use Friendica\Model\Group; use Friendica\Model\Photo; use Friendica\Network\Probe; use Friendica\Object\Image; +use Friendica\Protocol\DFRN; require_once 'include/items.php'; require_once 'include/acl_selectors.php'; require_once 'include/bbcode.php'; require_once 'include/security.php'; -require_once 'include/redir.php'; require_once 'include/tags.php'; require_once 'include/threads.php'; function photos_init(App $a) { if ($a->argc > 1) { - auto_redir($a, $a->argv[1]); + DFRN::autoRedir($a, $a->argv[1]); } if (Config::get('system', 'block_public') && !local_user() && !remote_user()) { diff --git a/mod/profile.php b/mod/profile.php index ce2c5348d9..0dd723379c 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -1,5 +1,7 @@ user['nickname']; $profile = htmlspecialchars($a->argv[1]); } else { - auto_redir($a, $which); + DFRN::autoRedir($a, $which); } profile_load($a, $which, $profile); diff --git a/mod/videos.php b/mod/videos.php index a7759f7419..640c2a3b55 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -1,5 +1,7 @@ argc > 1) - auto_redir($a, $a->argv[1]); + DFRN::autoRedir($a, $a->argv[1]); if((Config::get('system','block_public')) && (! local_user()) && (! remote_user())) { return;