]> git.mxchange.org Git - friendica-addons.git/blobdiff - planets/planets.php
Update obsolete App::getBaseUrl calls to DI::baseUrl
[friendica-addons.git] / planets / planets.php
index 48ba5767d6d434123d3969bdd253b3770e5f5462..59d0f49a31259c5b61f0ef2bbca9f19a5a2b3a92 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 planets_install() {
 
@@ -139,7 +140,7 @@ function planets_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/planets/planets.css' . '" media="all" />' . "\r\n";
+       $a->page['htmlhead'] .= '<link rel="stylesheet"  type="text/css" href="' . DI::baseUrl()->get() . '/addon/planets/planets.css' . '" media="all" />' . "\r\n";
 
        /* Get the current state of our config variable */