used more App::get_baseurl() instead of get_app()->get_baseurl().
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
b4bc07fdcc
commit
3befdc6920
|
@ -484,7 +484,7 @@ function call_worker() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = get_app()->get_baseurl()."/worker";
|
$url = App::get_baseurl()."/worker";
|
||||||
fetch_url($url, false, $redirects, 1);
|
fetch_url($url, false, $redirects, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -326,7 +326,7 @@ function proxy_is_local_image($url) {
|
||||||
if (strtolower(substr($url, 0, 5)) == "data:") return true;
|
if (strtolower(substr($url, 0, 5)) == "data:") return true;
|
||||||
|
|
||||||
// links normalised - bug #431
|
// links normalised - bug #431
|
||||||
$baseurl = normalise_link(get_app()->get_baseurl());
|
$baseurl = normalise_link(App::get_baseurl());
|
||||||
$url = normalise_link($url);
|
$url = normalise_link($url);
|
||||||
return (substr($url, 0, strlen($baseurl)) == $baseurl);
|
return (substr($url, 0, strlen($baseurl)) == $baseurl);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue