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