]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile.php
Update function calls
[friendica.git] / mod / profile.php
index ce2c5348d92dfae3c88347619de246153a9cb336..59762f4790b18a39677ebedb5253957cb1eacbbe 100644 (file)
@@ -1,15 +1,18 @@
 <?php
-
+/**
+ * @file mod/profile.php
+ */
 use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Core\PConfig;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
 use Friendica\Model\Group;
+use Friendica\Model\Profile;
 use Friendica\Module\Login;
+use Friendica\Protocol\DFRN;
 
 require_once 'include/contact_widgets.php';
-require_once 'include/redir.php';
 
 function profile_init(App $a)
 {
@@ -36,10 +39,10 @@ function profile_init(App $a)
                $which = $a->user['nickname'];
                $profile = htmlspecialchars($a->argv[1]);
        } else {
-               auto_redir($a, $which);
+               DFRN::autoRedir($a, $which);
        }
 
-       profile_load($a, $which, $profile);
+       Profile::load($a, $which, $profile);
 
        $blocked   = !local_user() && !remote_user() && Config::get('system', 'block_public');
        $userblock = !local_user() && !remote_user() && $a->profile['hidewall'];
@@ -173,10 +176,10 @@ function profile_content(App $a, $update = 0)
                        $tab = notags(trim($_GET['tab']));
                }
 
-               $o .= profile_tabs($a, $is_owner, $a->profile['nickname']);
+               $o .= Profile::getTabs($a, $is_owner, $a->profile['nickname']);
 
                if ($tab === 'profile') {
-                       $o .= advanced_profile($a);
+                       $o .= Profile::getAdvanced($a);
                        call_hooks('profile_advanced', $o);
                        return $o;
                }
@@ -344,8 +347,8 @@ function profile_content(App $a, $update = 0)
        }
 
        if ($is_owner && !$update && !Config::get('theme', 'hide_eventlist')) {
-               $o .= get_birthdays();
-               $o .= get_events();
+               $o .= Profile::getBirthdays();
+               $o .= Profile::getEvents();
        }