From 7635421d78e1b856fd409d9d7ef0cca7343c4bbf Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Sat, 13 Jan 2018 09:40:34 -0500 Subject: [PATCH] Update function calls update function calls and remove require_once --- mod/cal.php | 5 ++--- mod/photos.php | 4 ++-- mod/profile.php | 8 +++++--- mod/videos.php | 8 +++++--- 4 files changed, 14 insertions(+), 11 deletions(-) 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; -- 2.39.5