]> git.mxchange.org Git - friendica.git/commitdiff
Also reverted these + added spaces for nicer appearance.
authorRoland Häder <roland@mxchange.org>
Thu, 15 Dec 2016 08:22:38 +0000 (09:22 +0100)
committerRoland Häder <roland@mxchange.org>
Thu, 15 Dec 2016 08:23:41 +0000 (09:23 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
include/api.php
mod/content.php

index 757954ed04eb8344bbfe74ad126f8827c6db3e9d..2ae1aeaa026e25e9f8c7fbca5b7d0bb61ec4aa79 100644 (file)
                if (is_null($user_info)) $user_info = api_get_user($a);
                $arr['$user'] = $user_info;
                $arr['$rss'] = array(
-                       'alternate' => $user_info['url'],
-                       'self' => $a->get_baseurl(). "/". $a->query_string,
-                       'base' => $a->get_baseurl(),
-                       'updated' => api_date(null),
+                       'alternate'    => $user_info['url'],
+                       'self'         => App::get_baseurl(). "/". $a->query_string,
+                       'base'         => App::get_baseurl(),
+                       'updated'      => api_date(null),
                        'atom_updated' => datetime_convert('UTC','UTC','now',ATOM_TIME),
-                       'language' => $user_info['language'],
-                       'logo'  => $a->get_baseurl()."/images/friendica-32.png",
+                       'language'     => $user_info['language'],
+                       'logo'         => App::get_baseurl()."/images/friendica-32.png",
                );
 
                return $arr;
                $start = $page*$count;
 
                // Ugly code - should be changed
-               $myurl = $a->get_baseurl() . '/profile/'. $a->user['nickname'];
+               $myurl = App::get_baseurl() . '/profile/'. $a->user['nickname'];
                $myurl = substr($myurl,strpos($myurl,'://')+3);
                //$myurl = str_replace(array('www.','.'),array('','\\.'),$myurl);
                $myurl = str_replace('www.','',$myurl);
index 87960d712ed2fcf719fe3035f9640c8d5337d547..1e2307f553fd52b26348f9b9b0ce42d521e3163a 100644 (file)
@@ -197,7 +197,7 @@ function content_content(&$a, $update = 0) {
        }
 
        if($conv) {
-               $myurl = $a->get_baseurl() . '/profile/'. $a->user['nickname'];
+               $myurl = App::get_baseurl() . '/profile/'. $a->user['nickname'];
                $myurl = substr($myurl,strpos($myurl,'://')+3);
                $myurl = str_replace('www.','',$myurl);
                $diasp_url = str_replace('/profile/','/u/',$myurl);