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