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