Browse Source

used more App::get_baseurl() instead of get_app()->get_baseurl().

Signed-off-by: Roland Haeder <roland@mxchange.org>
pull/3036/head
Roland Haeder 5 years ago
parent
commit
3befdc6920
No known key found for this signature in database GPG Key ID: B72F8185C6C7BD78
  1. 2
      include/poller.php
  2. 2
      mod/proxy.php

2
include/poller.php

@ -484,7 +484,7 @@ function call_worker() {
return;
}
$url = get_app()->get_baseurl()."/worker";
$url = App::get_baseurl()."/worker";
fetch_url($url, false, $redirects, 1);
}

2
mod/proxy.php

@ -326,7 +326,7 @@ function proxy_is_local_image($url) {
if (strtolower(substr($url, 0, 5)) == "data:") return true;
// links normalised - bug #431
$baseurl = normalise_link(get_app()->get_baseurl());
$baseurl = normalise_link(App::get_baseurl());
$url = normalise_link($url);
return (substr($url, 0, strlen($baseurl)) == $baseurl);
}

Loading…
Cancel
Save