]> git.mxchange.org Git - friendica-addons.git/blobdiff - piwik/piwik.php
Update obsolete App::getBaseUrl calls to DI::baseUrl
[friendica-addons.git] / piwik / piwik.php
index cd41ad7b1040124e23e93237e03bc6a281951439..5d3da5c09ad7f02855c7baf3373141f412618bb6 100644 (file)
@@ -36,6 +36,7 @@ use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\Renderer;
+use Friendica\DI;
 use Friendica\Util\ConfigFileLoader;
 use Friendica\Util\Strings;
 
@@ -65,7 +66,7 @@ function piwik_analytics($a,&$b) {
         *   associated CSS file. We just have to tell Friendica to get it
         *   into the page header.
         */
-       $a->page['htmlhead'] .= '<link rel="stylesheet"  type="text/css" href="' . $a->getBaseURL() . '/addon/piwik/piwik.css' . '" media="all" />';
+       $a->page['htmlhead'] .= '<link rel="stylesheet"  type="text/css" href="' . DI::baseUrl()->get() . '/addon/piwik/piwik.css' . '" media="all" />';
 
        /*
         *   Get the configuration variables from the config/addon.config.php file.