]> git.mxchange.org Git - friendica-addons.git/blobdiff - krynn/krynn.php
Update obsolete App::getBaseUrl calls to DI::baseUrl
[friendica-addons.git] / krynn / krynn.php
index 8f92daf75e9d3d56a704dd96fe8d88500a1d56f9..fe5c197558c2f9a6a843a46715b7eca2bc6ddd8a 100644 (file)
@@ -13,6 +13,7 @@ use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\PConfig;
+use Friendica\DI;
 
 function krynn_install() {
 
@@ -142,7 +143,7 @@ function krynn_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/krynn/krynn.css' . '" media="all" />' . "\r\n";
+       $a->page['htmlhead'] .= '<link rel="stylesheet"  type="text/css" href="' . DI::baseUrl()->get() . '/addon/krynn/krynn.css' . '" media="all" />' . "\r\n";
 
        /* Get the current state of our config variable */