App::get_baseurl is now replaced with System::baseUrl
This commit is contained in:
14
src/App.php
14
src/App.php
@@ -370,11 +370,6 @@ class App {
|
||||
* @return string Friendica server base URL
|
||||
*/
|
||||
function get_baseurl($ssl = false) {
|
||||
// Is the function called statically?
|
||||
if (!(isset($this) && get_class($this) == __CLASS__)) {
|
||||
return self::$a->get_baseurl($ssl);
|
||||
}
|
||||
|
||||
$scheme = $this->scheme;
|
||||
|
||||
if (Config::get('system', 'ssl_policy') == SSL_POLICY_FULL) {
|
||||
@@ -521,7 +516,7 @@ class App {
|
||||
|
||||
$tpl = get_markup_template('head.tpl');
|
||||
$this->page['htmlhead'] = replace_macros($tpl, array(
|
||||
'$baseurl' => $this->get_baseurl(), // FIXME for z_path!!!!
|
||||
'$baseurl' => $this->get_baseurl(),
|
||||
'$local_user' => local_user(),
|
||||
'$generator' => 'Friendica' . ' ' . FRIENDICA_VERSION,
|
||||
'$delitem' => t('Delete this item?'),
|
||||
@@ -541,7 +536,7 @@ class App {
|
||||
}
|
||||
$tpl = get_markup_template('end.tpl');
|
||||
$this->page['end'] = replace_macros($tpl, array(
|
||||
'$baseurl' => $this->get_baseurl() // FIXME for z_path!!!!
|
||||
'$baseurl' => $this->get_baseurl()
|
||||
)) . $this->page['end'];
|
||||
}
|
||||
|
||||
@@ -582,11 +577,6 @@ class App {
|
||||
*/
|
||||
function remove_baseurl($orig_url) {
|
||||
|
||||
// Is the function called statically?
|
||||
if (!(isset($this) && get_class($this) == __CLASS__)) {
|
||||
return self::$a->remove_baseurl($orig_url);
|
||||
}
|
||||
|
||||
// Remove the hostname from the url if it is an internal link
|
||||
$nurl = normalise_link($orig_url);
|
||||
$base = normalise_link($this->get_baseurl());
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace Friendica\Core;
|
||||
|
||||
use dba;
|
||||
use dbm;
|
||||
use Friendica\App;
|
||||
|
||||
/**
|
||||
|
||||
@@ -334,7 +334,7 @@ class Probe {
|
||||
if ($data["photo"] != "") {
|
||||
$data["baseurl"] = matching_url(normalise_link($data["baseurl"]), normalise_link($data["photo"]));
|
||||
} else {
|
||||
$data["photo"] = App::get_baseurl().'/images/person-175.jpg';
|
||||
$data["photo"] = System::baseUrl().'/images/person-175.jpg';
|
||||
}
|
||||
|
||||
if (empty($data["name"])) {
|
||||
|
||||
Reference in New Issue
Block a user