]> git.mxchange.org Git - friendica-addons.git/blobdiff - wppost/wppost.php
Update obsolete App::getBaseUrl calls to DI::baseUrl
[friendica-addons.git] / wppost / wppost.php
index bcdedffeaf0728255cbe6e8bdea2301642af91d9..cd3e1cfc9c8c4cd68aa332a2e68735f6194c84b2 100644 (file)
@@ -13,6 +13,7 @@ use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\PConfig;
 use Friendica\Database\DBA;
+use Friendica\DI;
 use Friendica\Util\Network;
 use Friendica\Util\Strings;
 use Friendica\Util\XML;
@@ -69,7 +70,7 @@ function wppost_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/wppost/wppost.css' . '" media="all" />' . "\r\n";
+       $a->page['htmlhead'] .= '<link rel="stylesheet"  type="text/css" href="' . DI::baseUrl()->get() . '/addon/wppost/wppost.css' . '" media="all" />' . "\r\n";
 
        /* Get the current state of our config variables */