]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/theme.php
Update function calls
[friendica.git] / view / theme / frio / theme.php
index c529b1f98efdf2fad5b6e27d437a6e71a92f3a2d..b135fa0d6604edc3ae56ec23f04ca4923fd9245e 100644 (file)
@@ -13,6 +13,7 @@ use Friendica\Core\Config;
 use Friendica\Core\PConfig;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
+use Friendica\Model\Profile;
 use Friendica\Object\Image;
 
 $frio = "view/theme/frio";
@@ -23,6 +24,7 @@ function frio_init(App $a)
 {
        // disable the events module link in the profile tab
        $a->theme_events_in_profile = false;
+       $a->videowidth = 622;
 
        $a->set_template_engine('smarty3');
 
@@ -196,7 +198,7 @@ function frio_contact_photo_menu(App $a, &$args)
 function frio_remote_nav($a, &$nav)
 {
        // get the homelink from $_XSESSION
-       $homelink = get_my_url();
+       $homelink = Profile::getMyURL();
        if (!$homelink) {
                $homelink = defaults($_SESSION, 'visitor_home', '');
        }
@@ -233,7 +235,7 @@ function frio_remote_nav($a, &$nav)
        } elseif (!local_user() && remote_user()) {
                $r = q("SELECT `name`, `nick`, `micro` AS `photo` FROM `contact` WHERE `id` = %d", intval(remote_user()));
                $nav['remote'] = t("Guest");
-       } elseif (get_my_url()) {
+       } elseif (Profile::getMyURL()) {
                $r = q("SELECT `name`, `nick`, `photo` FROM `gcontact`
                                WHERE `addr` = '%s' AND `network` = 'dfrn'",
                        dbesc($webbie));