]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromapp/fromapp.php
Update obsolete App::getBaseUrl calls to DI::baseUrl
[friendica-addons.git] / fromapp / fromapp.php
index 5c9b4454fbb1c531b7f3771e34f23bc235bb01f9..dd48e7403cb67b91672189841dbc35fbee8a4607 100644 (file)
@@ -10,6 +10,7 @@ use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\PConfig;
+use Friendica\DI;
 
 function fromapp_install()
 {
@@ -48,7 +49,7 @@ function fromapp_settings(&$a, &$s)
 
        /* 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/fromapp/fromapp.css' . '" media="all" />' . "\r\n";
+       $a->page['htmlhead'] .= '<link rel="stylesheet"  type="text/css" href="' . DI::baseUrl()->get() . '/addon/fromapp/fromapp.css' . '" media="all" />' . "\r\n";
 
        /* Get the current state of our config variable */