mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Update obsolete App::getBaseUrl calls to DI::baseUrl
This commit is contained in:
parent
c03588f0b4
commit
905823ea63
38 changed files with 510 additions and 480 deletions
|
@ -39,7 +39,7 @@ function remote_permissions_settings(&$a,&$o) {
|
|||
|
||||
/* Add our stylesheet to the page so we can make our settings look nice */
|
||||
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->getBaseURL() . '/addon/remote_permissions/settings.css' . '" media="all" />' . "\r\n";
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/addon/remote_permissions/settings.css' . '" media="all" />' . "\r\n";
|
||||
|
||||
/* Get the current state of our config variable */
|
||||
|
||||
|
@ -81,7 +81,7 @@ function remote_permissions_content($a, $item_copy) {
|
|||
return;
|
||||
|
||||
// Find out if the contact lives here
|
||||
$baseurl = $a->getBaseURL();
|
||||
$baseurl = DI::baseUrl()->get();
|
||||
$baseurl = substr($baseurl, strpos($baseurl, '://') + 3);
|
||||
if(strpos($r[0]['url'], $baseurl) === false)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue