]> git.mxchange.org Git - friendica-addons.git/blobdiff - qcomment/qcomment.php
Update obsolete App::getBaseUrl calls to DI::baseUrl
[friendica-addons.git] / qcomment / qcomment.php
index 7c5e03588d8551378685fc5164a3ef4c91bbb32c..a411354c5aa0c62742f02298ebb6512ba56822c4 100644 (file)
@@ -20,6 +20,7 @@
 use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
+use Friendica\DI;
 use Friendica\Util\XML;
 
 function qcomment_install() {
@@ -42,7 +43,7 @@ function qcomment_addon_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/qcomment/qcomment.css' . '" media="all" />' . "\r\n";
+       $a->page['htmlhead'] .= '<link rel="stylesheet"  type="text/css" href="' . DI::baseUrl()->get() . '/addon/qcomment/qcomment.css' . '" media="all" />' . "\r\n";
 
        $words = PConfig::get(local_user(), 'qcomment', 'words', L10n::t(':-)') . "\n" . L10n::t(':-(') . "\n" .  L10n::t('lol'));